mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb/SVG: Process script element when href attribute changes
This commit is contained in:
committed by
Jelle Raaijmakers
parent
a187d5f28f
commit
f4c4d3c780
@@ -35,6 +35,14 @@ void SVGScriptElement::visit_edges(Cell::Visitor& visitor)
|
||||
visitor.visit(m_script);
|
||||
}
|
||||
|
||||
void SVGScriptElement::attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_)
|
||||
{
|
||||
Base::attribute_changed(name, old_value, value, namespace_);
|
||||
if (name == SVG::AttributeNames::href) {
|
||||
process_the_script_element();
|
||||
}
|
||||
}
|
||||
|
||||
void SVGScriptElement::inserted()
|
||||
{
|
||||
Base::inserted();
|
||||
|
||||
Reference in New Issue
Block a user