diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-03 21:32:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-06 00:27:09 +0200 |
commit | 44415af428ba5f33aae6e1cfb2cecb28e5683864 (patch) | |
tree | ec5311e3a439a470c753b7d118f6465f9a9c8de1 /Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp | |
parent | a9cae56f8e5235798bd5d85eaf5e3df417380592 (diff) | |
download | serenity-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.cpp | 4 |
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); } } |