mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
virtual Gfx::Path& get_path() = 0;
|
||||
|
||||
float get_total_length();
|
||||
NonnullRefPtr<Geometry::DOMPoint> get_point_at_length(float distance);
|
||||
JS::NonnullGCPtr<Geometry::DOMPoint> get_point_at_length(float distance);
|
||||
|
||||
protected:
|
||||
SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue