LibWeb: Invalidate layout after setting SVG transform attribute

This commit is contained in:
MacDue 2024-02-04 21:17:45 +00:00 committed by Andreas Kling
commit 080d9ec246
Notes: sideshowbarker 2024-07-16 22:22:13 +09:00

View file

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