diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGElement.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGSVGElement.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGElement.h b/Userland/Libraries/LibWeb/SVG/SVGElement.h index 8ef9a6256d..221d88d552 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGElement.h @@ -14,6 +14,8 @@ class SVGElement : public DOM::Element { public: using WrapperType = Bindings::SVGElementWrapper; + virtual bool requires_svg_container() const override { return true; } + protected: SVGElement(DOM::Document&, QualifiedName); }; diff --git a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.h b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.h index 7ec562bdf6..6a6342f25e 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.h @@ -22,6 +22,9 @@ public: unsigned width() const; unsigned height() const; + virtual bool requires_svg_container() const override { return false; } + virtual bool is_svg_container() const override { return true; } + private: RefPtr<Gfx::Bitmap> m_bitmap; }; |