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

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

Issue 23509003: Address regression bug report, revert the PaintInfo rect member function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Including revision in cl. 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 ed56f41885e5c9c7b5d8bcea400e629dfd658343..89aceefd3866d6a308802efded90868505499e27 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGRenderingContext.cpp
@@ -64,7 +64,7 @@ SVGRenderingContext::~SVGRenderingContext()
ASSERT(SVGResourcesCache::cachedResourcesForRenderObject(m_object)->filter() == m_filter);
m_filter->postApplyResource(m_object, m_paintInfo->context, ApplyToDefaultMode, 0, 0);
m_paintInfo->context = m_savedContext;
- m_paintInfo->setRect(m_savedPaintRect);
+ m_paintInfo->rect = m_savedPaintRect;
}
if (m_clipper) {
@@ -168,7 +168,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 |= PostApplyResources;
@@ -179,7 +179,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->setRect(IntRect(m_filter->drawingRegion(m_object)));
+ m_paintInfo->rect = 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