Index: Source/WebCore/svg/SVGStyledElement.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGStyledElement.cpp (revision 139660) |
+++ Source/WebCore/svg/SVGStyledElement.cpp (working copy) |
@@ -356,7 +356,7 @@ |
void SVGStyledElement::buildPendingResourcesIfNeeded() |
{ |
Document* document = this->document(); |
- if (!needsPendingResourceHandling() || !document) |
+ if (!needsPendingResourceHandling() || !document || !inDocument() || isInShadowTree()) |
return; |
SVGDocumentExtensions* extensions = document->accessSVGExtensions(); |