|
@@ -25,8 +25,6 @@ void SVGElement::initialize(JS::Realm& realm)
|
|
{
|
|
{
|
|
Base::initialize(realm);
|
|
Base::initialize(realm);
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGElement);
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGElement);
|
|
-
|
|
|
|
- m_dataset = HTML::DOMStringMap::create(*this);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void SVGElement::visit_edges(Cell::Visitor& visitor)
|
|
void SVGElement::visit_edges(Cell::Visitor& visitor)
|
|
@@ -35,6 +33,13 @@ void SVGElement::visit_edges(Cell::Visitor& visitor)
|
|
visitor.visit(m_dataset);
|
|
visitor.visit(m_dataset);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+JS::NonnullGCPtr<HTML::DOMStringMap> SVGElement::dataset()
|
|
|
|
+{
|
|
|
|
+ if (!m_dataset)
|
|
|
|
+ m_dataset = HTML::DOMStringMap::create(*this);
|
|
|
|
+ return *m_dataset;
|
|
|
|
+}
|
|
|
|
+
|
|
void SVGElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
|
void SVGElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
|
{
|
|
{
|
|
Base::attribute_changed(name, value);
|
|
Base::attribute_changed(name, value);
|