Index: Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp |
=================================================================== |
--- Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (revision 111489) |
+++ Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (working copy) |
@@ -155,7 +155,8 @@ |
bool RenderSVGResourceClipper::applyClippingToContext(RenderObject* object, const FloatRect& objectBoundingBox, |
const FloatRect& repaintRect, GraphicsContext* context) |
{ |
- if (!m_clipper.contains(object)) |
+ bool missingClipperData = !m_clipper.contains(object); |
+ if (missingClipperData) |
m_clipper.set(object, new ClipperData); |
bool shouldCreateClipData = false; |
@@ -201,7 +202,7 @@ |
if (!clipperData->clipMaskImage) |
return false; |
- SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, clipperData->clipMaskImage); |
+ SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, clipperData->clipMaskImage, missingClipperData); |
return true; |
} |