LibWeb: Update <use> visuals after changing the referenced element

This commit is contained in:
0GreenClover0 2023-08-22 03:59:48 +02:00 committed by Sam Atkins
commit f165d2e7ec
Notes: sideshowbarker 2024-07-17 04:21:32 +09:00

View file

@ -57,6 +57,8 @@ void SVGUseElement::attribute_changed(DeprecatedFlyString const& name, Deprecate
} else if (name == SVG::AttributeNames::href) {
// FIXME: Support the xlink:href attribute as a fallback
m_referenced_id = parse_id_from_href(value);
clone_element_tree_as_our_shadow_tree(referenced_element());
}
}