Index: Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp |
=================================================================== |
--- Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp (revision 106008) |
+++ Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp (working copy) |
@@ -274,6 +274,8 @@ |
for (Node* node = attributes.patternContentElement()->firstChild(); node; node = node->nextSibling()) { |
if (!node->isSVGElement() || !static_cast<SVGElement*>(node)->isStyled() || !node->renderer()) |
continue; |
+ if (node->renderer()->needsLayout()) |
+ return nullptr; |
SVGImageBufferTools::renderSubtreeToImageBuffer(tileImage.get(), node->renderer(), contentTransformation); |
} |