Prechádzať zdrojové kódy

LibWeb: Invalidate layout after setting SVG transform attribute

MacDue 1 rok pred
rodič
commit
080d9ec246

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