From 796de74956b6d2689fb5a48280b7465d60560495 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Tue, 16 Jul 2024 13:43:42 +0100 Subject: [PATCH] LibWeb/SVG: SVGAElement includes SVGURIReference --- Userland/Libraries/LibWeb/SVG/SVGAElement.cpp | 1 + Userland/Libraries/LibWeb/SVG/SVGAElement.h | 5 ++++- Userland/Libraries/LibWeb/SVG/SVGAElement.idl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/SVG/SVGAElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGAElement.cpp index 27abb867b50..f12de94a1a0 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGAElement.cpp @@ -30,6 +30,7 @@ void SVGAElement::initialize(JS::Realm& realm) void SVGAElement::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); + SVGURIReferenceMixin::visit_edges(visitor); visitor.visit(m_rel_list); } diff --git a/Userland/Libraries/LibWeb/SVG/SVGAElement.h b/Userland/Libraries/LibWeb/SVG/SVGAElement.h index ea2f32867fe..4aff634a7cc 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGAElement.h @@ -8,10 +8,13 @@ #pragma once #include +#include namespace Web::SVG { -class SVGAElement final : public SVGGraphicsElement { +class SVGAElement final + : public SVGGraphicsElement + , public SVGURIReferenceMixin { WEB_PLATFORM_OBJECT(SVGAElement, SVGGraphicsElement); JS_DECLARE_ALLOCATOR(SVGAElement); diff --git a/Userland/Libraries/LibWeb/SVG/SVGAElement.idl b/Userland/Libraries/LibWeb/SVG/SVGAElement.idl index fb0929526bb..6306661f747 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAElement.idl +++ b/Userland/Libraries/LibWeb/SVG/SVGAElement.idl @@ -20,5 +20,5 @@ interface SVGAElement : SVGGraphicsElement { }; -// FIXME: SVGAElement includes SVGURIReference; +SVGAElement includes SVGURIReference; // FIXME: SVGAElement includes HTMLHyperlinkElementUtils;