LibWeb/SVG: SVGAElement includes SVGURIReference

This commit is contained in:
Jamie Mansfield 2024-07-16 13:43:42 +01:00 committed by Andreas Kling
parent 6ca4c2beb0
commit 796de74956
Notes: sideshowbarker 2024-07-17 07:14:12 +09:00
3 changed files with 6 additions and 2 deletions

View file

@ -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);
}

View file

@ -8,10 +8,13 @@
#pragma once
#include <LibWeb/SVG/SVGGraphicsElement.h>
#include <LibWeb/SVG/SVGURIReference.h>
namespace Web::SVG {
class SVGAElement final : public SVGGraphicsElement {
class SVGAElement final
: public SVGGraphicsElement
, public SVGURIReferenceMixin<SupportsXLinkHref::Yes> {
WEB_PLATFORM_OBJECT(SVGAElement, SVGGraphicsElement);
JS_DECLARE_ALLOCATOR(SVGAElement);

View file

@ -20,5 +20,5 @@ interface SVGAElement : SVGGraphicsElement {
};
// FIXME: SVGAElement includes SVGURIReference;
SVGAElement includes SVGURIReference;
// FIXME: SVGAElement includes HTMLHyperlinkElementUtils;