summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-03 21:32:14 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit44415af428ba5f33aae6e1cfb2cecb28e5683864 (patch)
treeec5311e3a439a470c753b7d118f6465f9a9c8de1 /Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
parenta9cae56f8e5235798bd5d85eaf5e3df417380592 (diff)
downloadserenity-44415af428ba5f33aae6e1cfb2cecb28e5683864.zip
LibWeb: Make DOMPoint and DOMPointReadOnly GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
index 1fe2677c43..8485f50883 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
@@ -26,10 +26,10 @@ float SVGGeometryElement::get_total_length()
return 0;
}
-NonnullRefPtr<Geometry::DOMPoint> SVGGeometryElement::get_point_at_length(float distance)
+JS::NonnullGCPtr<Geometry::DOMPoint> SVGGeometryElement::get_point_at_length(float distance)
{
(void)distance;
- return Geometry::DOMPoint::create(0, 0, 0, 0);
+ return Geometry::DOMPoint::create_with_global_object(window(), 0, 0, 0, 0);
}
}