Index: Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourceGradient.cpp b/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
index bc69c81a5b8f0a19054f661e19b9554fffd8cb0f..f4ba2e3b7c51bc7b126a0de723d6b6d0b07274fb 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourceGradient.cpp |
@@ -45,10 +45,9 @@ void RenderSVGResourceGradient::removeClientFromCache(RenderObject* client, bool |
markClientForInvalidation(client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation); |
} |
-SVGPaintServer RenderSVGResourceGradient::preparePaintServer(RenderObject* object, RenderStyle* style, RenderSVGResourceModeFlags resourceMode) |
+SVGPaintServer RenderSVGResourceGradient::preparePaintServer(RenderObject* object) |
{ |
ASSERT(object); |
- ASSERT(style); |
clearInvalidationMask(); |
@@ -97,10 +96,7 @@ SVGPaintServer RenderSVGResourceGradient::preparePaintServer(RenderObject* objec |
if (!gradientData->gradient) |
return SVGPaintServer::invalid(); |
- const SVGRenderStyle& svgStyle = style->svgStyle(); |
- |
- AffineTransform computedGradientSpaceTransform = computeResourceSpaceTransform(object, gradientData->userspaceTransform, svgStyle, resourceMode); |
- gradientData->gradient->setGradientSpaceTransform(computedGradientSpaceTransform); |
+ gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTransform); |
return SVGPaintServer(gradientData->gradient); |
} |