Index: Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourcePattern.cpp b/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
index a15d4f3813c225a06ade3659b7b2e4fbc96cb201..01b5829d595b7aaa1cbafad95be6c14b1d9c6c30 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
@@ -204,13 +204,15 @@ PassOwnPtr<ImageBuffer> RenderSVGResourcePattern::createTileImage(const PatternA |
if (attributes.patternContentUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) |
contentTransformation = tileImageTransform; |
+ SubtreeContentTransformScope contentTransformScope(contentTransformation); |
+ |
// Draw the content into the ImageBuffer. |
for (SVGElement* element = Traversal<SVGElement>::firstChild(*attributes.patternContentElement()); element; element = Traversal<SVGElement>::nextSibling(*element)) { |
if (!element->renderer()) |
continue; |
if (element->renderer()->needsLayout()) |
return nullptr; |
- SVGRenderingContext::renderSubtree(tileImage->context(), element->renderer(), contentTransformation); |
+ SVGRenderingContext::renderSubtree(tileImage->context(), element->renderer()); |
} |
return tileImage.release(); |