|
@@ -12,6 +12,7 @@
|
|
|
#include <LibWeb/SVG/AttributeParser.h>
|
|
|
#include <LibWeb/SVG/SVGElement.h>
|
|
|
#include <LibWeb/SVG/SVGStopElement.h>
|
|
|
+#include <LibWeb/SVG/SVGURIReference.h>
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
@@ -35,7 +36,9 @@ inline Painting::SVGGradientPaintStyle::SpreadMethod to_painting_spread_method(S
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class SVGGradientElement : public SVGElement {
|
|
|
+class SVGGradientElement
|
|
|
+ : public SVGElement
|
|
|
+ , public SVGURIReferenceMixin<SupportsXLinkHref::Yes> {
|
|
|
WEB_PLATFORM_OBJECT(SVGGradientElement, SVGElement);
|
|
|
|
|
|
public:
|
|
@@ -55,6 +58,7 @@ protected:
|
|
|
SVGGradientElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
+ virtual void visit_edges(Cell::Visitor&) override;
|
|
|
|
|
|
JS::GCPtr<SVGGradientElement const> linked_gradient(HashTable<SVGGradientElement const*>& seen_gradients) const;
|
|
|
|