LibWeb/SVG: Make SVGClipPathElement inherit from SVGGraphicsElement

This commit is contained in:
Gingeh 2025-01-08 14:44:00 +11:00 committed by Alexander Kalenik
parent 08ebfaff17
commit 3f8d4c2c92
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ namespace Web::SVG {
GC_DEFINE_ALLOCATOR(SVGClipPathElement); GC_DEFINE_ALLOCATOR(SVGClipPathElement);
SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name) SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name)
: SVGElement(document, move(qualified_name)) : SVGGraphicsElement(document, move(qualified_name))
{ {
} }

View File

@ -8,13 +8,14 @@
#include <LibWeb/SVG/AttributeParser.h> #include <LibWeb/SVG/AttributeParser.h>
#include <LibWeb/SVG/SVGElement.h> #include <LibWeb/SVG/SVGElement.h>
#include <LibWeb/SVG/SVGGraphicsElement.h>
#include <LibWeb/SVG/SVGViewport.h> #include <LibWeb/SVG/SVGViewport.h>
namespace Web::SVG { namespace Web::SVG {
class SVGClipPathElement final : public SVGElement class SVGClipPathElement final : public SVGGraphicsElement
, public SVGViewport { , public SVGViewport {
WEB_PLATFORM_OBJECT(SVGClipPathElement, SVGElement); WEB_PLATFORM_OBJECT(SVGClipPathElement, SVGGraphicsElement);
GC_DECLARE_ALLOCATOR(SVGClipPathElement); GC_DECLARE_ALLOCATOR(SVGClipPathElement);
public: public:
@ -48,5 +49,4 @@ private:
Optional<ClipPathUnits> m_clip_path_units = {}; Optional<ClipPathUnits> m_clip_path_units = {};
}; };
} }