diff --git a/Libraries/LibWeb/SVG/SVGElement.h b/Libraries/LibWeb/SVG/SVGElement.h index 5138a11e93..74cd89329a 100644 --- a/Libraries/LibWeb/SVG/SVGElement.h +++ b/Libraries/LibWeb/SVG/SVGElement.h @@ -32,10 +32,11 @@ namespace Web::SVG { class SVGElement : public Element { public: - SVGElement(Document&, const FlyString& tag_name); - virtual bool is_graphics_element() const { return false; } +protected: + SVGElement(Document&, const FlyString& tag_name); + private: virtual bool is_svg_element() const final { return true; } }; diff --git a/Libraries/LibWeb/SVG/SVGGeometryElement.h b/Libraries/LibWeb/SVG/SVGGeometryElement.h index 7e58e0009a..4a806b20b9 100644 --- a/Libraries/LibWeb/SVG/SVGGeometryElement.h +++ b/Libraries/LibWeb/SVG/SVGGeometryElement.h @@ -32,6 +32,7 @@ namespace Web::SVG { class SVGGeometryElement : public SVGGraphicsElement { public: +protected: SVGGeometryElement(Document& document, const FlyString& tag_name); };