LibWeb: Implement the SVGGeometryElement.pathLength attribute

This commit is contained in:
Tim Ledbetter 2025-07-11 23:45:31 +01:00 committed by Shannon Booth
commit caf45f2317
Notes: github-actions[bot] 2025-07-11 23:50:23 +00:00
6 changed files with 54 additions and 10 deletions

View file

@ -23,10 +23,16 @@ public:
float get_total_length();
GC::Ref<Geometry::DOMPoint> get_point_at_length(float distance);
GC::Ref<SVGAnimatedNumber> path_length();
protected:
SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
private:
GC::Ptr<SVGAnimatedNumber> m_path_length;
};
}