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

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
Index: Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp b/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
index 18589dfea6f4fcc6ab4250ea2140223b9644c309..197fcf407c41aca6832b4082264a26e76bab0c52 100644
--- a/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
+++ b/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
@@ -426,8 +426,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())

Powered by Google App Engine
This is Rietveld 408576698