1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibWeb: Make DOMPoint and DOMPointReadOnly GC-allocated

This commit is contained in:
Andreas Kling 2022-09-03 21:32:14 +02:00
parent a9cae56f8e
commit 44415af428
9 changed files with 78 additions and 43 deletions

View file

@ -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);
}
}