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

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

Issue 2353843002: Add position sticky main thread scrolling reason [spv2] (Closed)
Patch Set: Embrace the rebase 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
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 8bf9fec3681737a31140460f78e2339a77fcc153..52ad1408b3d2c41d93722417ea5935d6f6635614 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2752,8 +2752,12 @@ void PaintLayer::removeAncestorOverflowLayer(const PaintLayer* removedLayer)
if (ancestorOverflowLayer() && ancestorOverflowLayer() != removedLayer)
return;
- if (ancestorOverflowLayer())
+ if (ancestorOverflowLayer()) {
+ // TODO(pdr): When slimming paint v2 is enabled, we will need to
+ // invalidate the scroll paint property subtree for this so main
+ // thread scroll reasons are recomputed.
ancestorOverflowLayer()->getScrollableArea()->invalidateStickyConstraintsFor(this);
+ }
updateAncestorOverflowLayer(nullptr);
PaintLayer* current = m_first;
while (current) {

Powered by Google App Engine
This is Rietveld 408576698