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

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

Issue 1202523006: SP: Invalidate all non-compositing descendants in the slow scroll path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp b/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
index 6a672254dcdb0bcf693770515930213de0a8d0de..bb3d55ce33746ecf121ab814f27c981cc85ba63f 100644
--- a/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
+++ b/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
@@ -424,8 +424,12 @@ void DeprecatedPaintLayerScrollableArea::setScrollOffset(const DoublePoint& newS
// Just schedule a full paint invalidation of our object.
// FIXME: This invalidation will be unnecessary in slimming paint phase 2.
- if (requiresPaintInvalidation)
- box().setShouldDoFullPaintInvalidation();
+ if (requiresPaintInvalidation) {
+ if (RuntimeEnabledFeatures::slimmingPaintEnabled())
+ box().setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
+ else
+ box().setShouldDoFullPaintInvalidation();
+ }
// Schedule the scroll DOM event.
if (box().node())
« no previous file with comments | « LayoutTests/paint/invalidation/non-stacking-scroller-with-abspos-descendant-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698