mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
LibWeb/SVG: SVGScriptElement includes SVGURIReference
This commit is contained in:
committed by
Andreas Kling
parent
796de74956
commit
fbb5bc471d
@@ -28,6 +28,7 @@ void SVGScriptElement::initialize(JS::Realm& realm)
|
||||
void SVGScriptElement::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
SVGURIReferenceMixin::visit_edges(visitor);
|
||||
visitor.visit(m_script);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/SVGElement.h>
|
||||
#include <LibWeb/SVG/SVGURIReference.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
// https://www.w3.org/TR/SVG/interact.html#InterfaceSVGScriptElement
|
||||
class SVGScriptElement : public SVGElement {
|
||||
class SVGScriptElement
|
||||
: public SVGElement
|
||||
, public SVGURIReferenceMixin<SupportsXLinkHref::Yes> {
|
||||
WEB_PLATFORM_OBJECT(SVGScriptElement, SVGElement);
|
||||
JS_DECLARE_ALLOCATOR(SVGScriptElement);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import <HTML/Scripting/Fetching.idl>
|
||||
#import <SVG/SVGElement.idl>
|
||||
#import <SVG/SVGURIReference.idl>
|
||||
|
||||
// https://www.w3.org/TR/SVG/interact.html#InterfaceSVGScriptElement
|
||||
[Exposed=Window]
|
||||
@@ -8,4 +9,4 @@ interface SVGScriptElement : SVGElement {
|
||||
[Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
|
||||
};
|
||||
|
||||
// FIXME: SVGScriptElement includes SVGURIReference;
|
||||
SVGScriptElement includes SVGURIReference;
|
||||
|
||||
Reference in New Issue
Block a user