mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:38:12 +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
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Geometry/DOMPoint.h>
|
||||
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
@ -19,6 +20,9 @@ public:
|
|||
|
||||
virtual Gfx::Path& get_path() = 0;
|
||||
|
||||
float get_total_length();
|
||||
NonnullRefPtr<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