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

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

Issue 1022843004: [S.P.] Use 'const LayoutObject&' in SVGMaskPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/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 598f551ff062e7ed1954482c1416a9caca3a57d3..8675e9a3b3f5204ad1d8c64d3c43936bfa0890c3 100644
--- a/Source/core/paint/SVGPaintContext.cpp
+++ b/Source/core/paint/SVGPaintContext.cpp
@@ -59,7 +59,7 @@ SVGPaintContext::~SVGPaintContext()
if (m_masker) {
ASSERT(SVGResourcesCache::cachedResourcesForLayoutObject(m_object));
ASSERT(SVGResourcesCache::cachedResourcesForLayoutObject(m_object)->masker() == m_masker);
- SVGMaskPainter(*m_masker).finishEffect(m_object, m_paintInfo.context);
+ SVGMaskPainter(*m_masker).finishEffect(*m_object, m_paintInfo.context);
}
if (m_clipper) {
@@ -146,7 +146,7 @@ bool SVGPaintContext::applyClipIfNecessary(SVGResources* resources)
bool SVGPaintContext::applyMaskIfNecessary(SVGResources* resources)
{
if (LayoutSVGResourceMasker* masker = resources ? resources->masker() : nullptr) {
- if (!SVGMaskPainter(*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