diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGElement.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGElement.h b/Userland/Libraries/LibWeb/SVG/SVGElement.h index e3ce0535c2..1329d86814 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGElement.h @@ -26,6 +26,16 @@ protected: virtual void visit_edges(Cell::Visitor&) override; JS::GCPtr<HTML::DOMStringMap> m_dataset; + +private: + virtual bool is_svg_element() const final { return true; } }; } + +namespace Web::DOM { + +template<> +inline bool Node::fast_is<SVG::SVGElement>() const { return is_svg_element(); } + +} |