mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +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:
parent
e883777a18
commit
04cc837db9
3 changed files with 19 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue