From eabd43d31a570dbce4440294efeef980536652dc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 26 Jul 2020 17:47:26 +0200 Subject: [PATCH] LibWeb: Make SVGElement and SVGGeometryElement constructors protected --- Libraries/LibWeb/SVG/SVGElement.h | 5 +++-- Libraries/LibWeb/SVG/SVGGeometryElement.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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); };