mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Stub out two functions on SVGGeometryElement
These two were called by Discord while loading: - float getTotalLength(); - DOMPoint getPointAtLength(float distance);
This commit is contained in:
@@ -19,4 +19,15 @@ RefPtr<Layout::Node> SVGGeometryElement::create_layout_node(NonnullRefPtr<CSS::S
|
||||
return adopt_ref(*new Layout::SVGGeometryBox(document(), *this, move(style)));
|
||||
}
|
||||
|
||||
float SVGGeometryElement::get_total_length()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Geometry::DOMPoint> SVGGeometryElement::get_point_at_length(float distance)
|
||||
{
|
||||
(void)distance;
|
||||
return Geometry::DOMPoint::create(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user