Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: Source/WebCore/rendering/svg/SVGImageBufferTools.cpp

Issue 9802004: Merge 110563 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/svg/SVGImageBufferTools.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/SVGImageBufferTools.cpp
===================================================================
--- Source/WebCore/rendering/svg/SVGImageBufferTools.cpp (revision 111489)
+++ Source/WebCore/rendering/svg/SVGImageBufferTools.cpp (working copy)
@@ -121,7 +121,7 @@
contentTransformation = savedContentTransformation;
}
-void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>& imageBuffer)
+void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>& imageBuffer, bool safeToClear)
{
ASSERT(context);
ASSERT(imageBuffer);
@@ -136,7 +136,7 @@
// When nesting resources, with objectBoundingBox as content unit types, there's no use in caching the
// resulting image buffer as the parent resource already caches the result.
- if (!currentContentTransformation().isIdentity())
+ if (safeToClear && !currentContentTransformation().isIdentity())
imageBuffer.clear();
}
« no previous file with comments | « Source/WebCore/rendering/svg/SVGImageBufferTools.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698