mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb: Convert Layout Boxes to new pixel units
This commit is contained in:
parent
c70dcaefcd
commit
65cdf89a8b
11 changed files with 29 additions and 28 deletions
|
@ -37,7 +37,8 @@ float SVGGeometryBox::viewbox_scaling() const
|
|||
|
||||
return min(scale_width, scale_height);
|
||||
}
|
||||
Gfx::FloatPoint SVGGeometryBox::viewbox_origin() const
|
||||
|
||||
CSSPixelPoint SVGGeometryBox::viewbox_origin() const
|
||||
{
|
||||
auto* svg_box = dom_node().first_ancestor_of_type<SVG::SVGSVGElement>();
|
||||
if (!svg_box || !svg_box->view_box().has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue