mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Invalidate layout after setting SVG transform attribute
This commit is contained in:
parent
1d999fa780
commit
080d9ec246
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/MacDue
Commit: 080d9ec246
Pull-request: https://github.com/SerenityOS/serenity/pull/23069
Issue: https://github.com/SerenityOS/serenity/issues/23004
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ void SVGGraphicsElement::attribute_changed(FlyString const& name, Optional<Strin
|
|||
auto transform_list = AttributeParser::parse_transform(value.value_or(String {}));
|
||||
if (transform_list.has_value())
|
||||
m_transform = transform_from_transform_list(*transform_list);
|
||||
// FIXME: This should only invalidate the contents of the SVG.
|
||||
document().invalidate_layout();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue