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

Unified Diff: Source/core/rendering/svg/SVGRenderingContext.cpp

Issue 23494007: Implement getter/setter in PaintInfo::rect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No signed off. Created 7 years, 4 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/rendering/svg/SVGRenderSupport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGRenderingContext.cpp
diff --git a/Source/core/rendering/svg/SVGRenderingContext.cpp b/Source/core/rendering/svg/SVGRenderingContext.cpp
index 33f2a3c8d34d884b23243ecb614f369a949c2f09..a5b605146aac9b07be852abedf089695b3b0ce3e 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGRenderingContext.cpp
@@ -60,7 +60,7 @@ SVGRenderingContext::~SVGRenderingContext()
ASSERT(m_filter);
m_filter->postApplyResource(m_object, m_paintInfo->context, ApplyToDefaultMode, 0, 0);
m_paintInfo->context = m_savedContext;
- m_paintInfo->rect = m_savedPaintRect;
+ m_paintInfo->setRect(m_savedPaintRect);
}
if (m_renderingFlags & EndOpacityLayer)
@@ -149,7 +149,7 @@ void SVGRenderingContext::prepareToRenderSVGContent(RenderObject* object, PaintI
m_filter = resources->filter();
if (m_filter) {
m_savedContext = m_paintInfo->context;
- m_savedPaintRect = m_paintInfo->rect;
+ m_savedPaintRect = m_paintInfo->rect();
// Return with false here may mean that we don't need to draw the content
// (because it was either drawn before or empty) but we still need to apply the filter.
m_renderingFlags |= EndFilterLayer;
@@ -160,7 +160,7 @@ void SVGRenderingContext::prepareToRenderSVGContent(RenderObject* object, PaintI
// changes, we need to paint the whole filter region. Otherwise, elements not visible
// at the time of the initial paint (due to scrolling, window size, etc.) will never
// be drawn.
- m_paintInfo->rect = IntRect(m_filter->drawingRegion(m_object));
+ m_paintInfo->setRect(IntRect(m_filter->drawingRegion(m_object)));
}
}
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698