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
Notes: sideshowbarker 2024-07-19 04:36:03 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -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; }
};

View file

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