1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

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
parent 5af7d5da2f
commit f165d2e7ec

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