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

Unified Diff: Source/core/paint/SVGPaintContext.cpp

Issue 967543002: [S.P.] Move svg mask painting to SVGMaskPainter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes Created 5 years, 10 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/core/paint/SVGMaskPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGPaintContext.cpp
diff --git a/Source/core/paint/SVGPaintContext.cpp b/Source/core/paint/SVGPaintContext.cpp
index 00e0ee0bfa05bdc179c7c79aa575e7d332ef2c34..1e70f83375b9b690144c2a162853d22f35509db6 100644
--- a/Source/core/paint/SVGPaintContext.cpp
+++ b/Source/core/paint/SVGPaintContext.cpp
@@ -34,6 +34,7 @@
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/paint/RenderDrawingRecorder.h"
+#include "core/paint/SVGMaskPainter.h"
#include "platform/FloatConversion.h"
namespace blink {
@@ -57,7 +58,7 @@ SVGPaintContext::~SVGPaintContext()
if (m_masker) {
ASSERT(SVGResourcesCache::cachedResourcesForLayoutObject(m_object));
ASSERT(SVGResourcesCache::cachedResourcesForLayoutObject(m_object)->masker() == m_masker);
- m_masker->finishEffect(m_object, m_paintInfo.context);
+ SVGMaskPainter(*m_masker).finishEffect(m_object, m_paintInfo.context);
}
if (m_clipper) {
@@ -144,7 +145,7 @@ bool SVGPaintContext::applyClipIfNecessary(SVGResources* resources)
bool SVGPaintContext::applyMaskIfNecessary(SVGResources* resources)
{
if (LayoutSVGResourceMasker* masker = resources ? resources->masker() : nullptr) {
- if (!masker->prepareEffect(m_object, m_paintInfo.context))
+ if (!SVGMaskPainter(*masker).prepareEffect(m_object, m_paintInfo.context))
return false;
m_masker = masker;
}
« no previous file with comments | « Source/core/paint/SVGMaskPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698