Index: Source/core/svg/SVGElementInstance.cpp |
diff --git a/Source/core/svg/SVGElementInstance.cpp b/Source/core/svg/SVGElementInstance.cpp |
index c735d82990ff5a27384d8646b803cb27d2d93bac..ad2a5bc6d107b9ac8d43062e7d58a0eee8b53470 100644 |
--- a/Source/core/svg/SVGElementInstance.cpp |
+++ b/Source/core/svg/SVGElementInstance.cpp |
@@ -171,7 +171,7 @@ void SVGElementInstance::appendChild(PassRefPtr<SVGElementInstance> child) |
void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element) |
{ |
- if (!element || !element->inDocument()) |
+ if (!element) |
return; |
if (element->instanceUpdatesBlocked()) |
@@ -195,8 +195,6 @@ void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element) |
element->invalidateShadowTree(); |
} |
} |
- |
- element->document().updateRenderTreeIfNeeded(); |
} |
const AtomicString& SVGElementInstance::interfaceName() const |