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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2559183005: Fix issue when background changes painting target layer (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/LayoutTests/paint/invalidation/filter-invalidation-with-composited-container-change-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index ebe400f573dabc4f76ab52aa00f487e94387c851..f3ff1558ea7f4d254c8a3eca5567aa9c2dfd59ca 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -368,11 +368,9 @@ void CompositedLayerMapping::
backgroundPaintsOntoScrollingContentsLayer()) {
m_backgroundPaintsOntoScrollingContentsLayer =
shouldPaintOntoScrollingContentsLayer;
- // If the background is no longer painted onto the scrolling contents layer
- // the scrolling contents layer needs to be updated. If it is going to be
- // painted onto the scrolling contents layer this update will be triggered
- // by LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect
- if (hasScrollingLayer() && !shouldPaintOntoScrollingContentsLayer)
+ // The scrolling contents layer needs to be updated for changed
+ // m_backgroundPaintsOntoScrollingContentsLayer.
+ if (hasScrollingLayer())
m_scrollingContentsLayer->setNeedsDisplay();
}
}
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/filter-invalidation-with-composited-container-change-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698