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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp

Issue 2310203002: Invalidate scrolling contents layer background when child invalidated. (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-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/paint/ObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
index 81a301b5097852b9f51aed67aee644a216f7b286..b6f37938afaa291581f1b39c8c6ec9c6e9b7c34e 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
@@ -224,6 +224,9 @@ void ObjectPaintInvalidator::setBackingNeedsPaintInvalidationInRect(const Layout
}
} else if (m_object.compositedScrollsWithRespectTo(paintInvalidationContainer)) {
layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect(rect, reason, m_object);
+ if (paintInvalidationContainer.usesCompositedScrolling() && layer.compositedLayerMapping()->backgroundPaintsOntoScrollingContentsLayer()) {
+ invalidateDisplayItemClient(*layer.compositedLayerMapping()->scrollingContentsLayer(), reason);
+ }
} else if (paintInvalidationContainer.usesCompositedScrolling()) {
if (layer.compositedLayerMapping()->backgroundPaintsOntoScrollingContentsLayer()) {
// TODO(flackr): Get a correct rect in the context of the scrolling contents layer to update
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698