mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Make SVGElement and SVGGeometryElement constructors protected
This commit is contained in:
parent
1b1537c5a6
commit
eabd43d31a
Notes:
sideshowbarker
2024-07-19 04:36:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/eabd43d31a5
2 changed files with 4 additions and 2 deletions
|
@ -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; }
|
||||
};
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace Web::SVG {
|
|||
|
||||
class SVGGeometryElement : public SVGGraphicsElement {
|
||||
public:
|
||||
protected:
|
||||
SVGGeometryElement(Document& document, const FlyString& tag_name);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue