mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Convert Layout Boxes to new pixel units
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user