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; |
} |