diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-11-04 20:54:05 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-05 17:42:31 +0100 |
commit | 65cdf89a8bd0de699d78f3204291f9c615aee036 (patch) | |
tree | 4ff3f3f3b4779ab8a1f95ee7fac8d5fd5843aadf /Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp | |
parent | c70dcaefcd4e6f5827d84320fc1fadd77970097c (diff) | |
download | serenity-65cdf89a8bd0de699d78f3204291f9c615aee036.zip |
LibWeb: Convert Layout Boxes to new pixel units
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp b/Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp index cfc0add288..04b3a2defb 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp @@ -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()) |