summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-11-04 20:54:05 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-05 17:42:31 +0100
commit65cdf89a8bd0de699d78f3204291f9c615aee036 (patch)
tree4ff3f3f3b4779ab8a1f95ee7fac8d5fd5843aadf /Userland/Libraries/LibWeb/Layout/SVGGeometryBox.cpp
parentc70dcaefcd4e6f5827d84320fc1fadd77970097c (diff)
downloadserenity-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.cpp3
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())