1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:57:34 +00:00

LibWeb: Make SVGElement and SVGGeometryElement constructors protected

This commit is contained in:
Andreas Kling 2020-07-26 17:47:26 +02:00
parent 1b1537c5a6
commit eabd43d31a
2 changed files with 4 additions and 2 deletions

View file

@ -32,10 +32,11 @@ namespace Web::SVG {
class SVGElement : public Element { class SVGElement : public Element {
public: public:
SVGElement(Document&, const FlyString& tag_name);
virtual bool is_graphics_element() const { return false; } virtual bool is_graphics_element() const { return false; }
protected:
SVGElement(Document&, const FlyString& tag_name);
private: private:
virtual bool is_svg_element() const final { return true; } virtual bool is_svg_element() const final { return true; }
}; };

View file

@ -32,6 +32,7 @@ namespace Web::SVG {
class SVGGeometryElement : public SVGGraphicsElement { class SVGGeometryElement : public SVGGraphicsElement {
public: public:
protected:
SVGGeometryElement(Document& document, const FlyString& tag_name); SVGGeometryElement(Document& document, const FlyString& tag_name);
}; };