mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Update <use> visuals after changing the referenced element
This commit is contained in:
parent
5af7d5da2f
commit
f165d2e7ec
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/0GreenClover0
Commit: f165d2e7ec
Pull-request: https://github.com/SerenityOS/serenity/pull/20704
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue