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:
parent
a9cae56f8e
commit
44415af428
9 changed files with 78 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue