mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/SVG: Make SVGClipPathElement inherit from SVGGraphicsElement
This commit is contained in:
parent
08ebfaff17
commit
3f8d4c2c92
|
|
@ -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))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user