Index: Source/core/svg/SVGGraphicsElement.cpp |
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp |
index 9da02b36d0c5be6abf56906c9b2bd9bb4be5a591..5b94695ec82fb5117a72c719f407fe8af3384782 100644 |
--- a/Source/core/svg/SVGGraphicsElement.cpp |
+++ b/Source/core/svg/SVGGraphicsElement.cpp |
@@ -129,8 +129,11 @@ void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName) |
SVGElementInstance::InvalidationGuard invalidationGuard(this); |
- if (SVGTests::handleAttributeChange(this, attrName)) |
+ // Reattach so the isValid() check will be run again during renderer creation. |
+ if (SVGTests::isKnownAttribute(attrName)) { |
+ lazyReattachIfAttached(); |
return; |
+ } |
RenderObject* object = renderer(); |
if (!object) |