Browse Source

LibWeb: Invalidate layout after setting SVG transform attribute

MacDue 1 year ago
parent
commit
080d9ec246
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp

+ 2 - 0
Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp

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