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

Unified Diff: Source/WebCore/rendering/svg/RenderSVGResourceMasker.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
Index: Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
===================================================================
--- Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (revision 111489)
+++ Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (working copy)
@@ -86,7 +86,8 @@
ASSERT(context);
ASSERT_UNUSED(resourceMode, resourceMode == ApplyToDefaultMode);
- if (!m_masker.contains(object))
+ bool missingMaskerData = !m_masker.contains(object);
+ if (missingMaskerData)
m_masker.set(object, new MaskerData);
MaskerData* maskerData = m_masker.get(object);
@@ -116,7 +117,7 @@
if (!maskerData->maskImage)
return false;
- SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, maskerData->maskImage);
+ SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, maskerData->maskImage, missingMaskerData);
return true;
}
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp ('k') | Source/WebCore/rendering/svg/SVGImageBufferTools.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698