소스 검색

LibWeb: Invalidate layout after setting SVG transform attribute

MacDue 1 년 전
부모
커밋
080d9ec246
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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();
     }
 }