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

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

Issue 2647533002: Force compositing inputs to be clean for getBoundingClientRect (Closed)
Patch Set: Rebase Created 3 years, 11 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/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 07efaa1659d7b483f2b6c5208239cee1cc15cc2e..2c6b496494c0296a9d1397462a61c25874254622 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -826,6 +826,10 @@ void PaintLayerScrollableArea::updateAfterLayout() {
DisableCompositingQueryAsserts disabler;
positionOverflowControls();
+
+ // Layout of a scrollable area, or any of its descendants (sticky or
+ // otherwise), invalidates the cached sticky constraints.
+ invalidateAllStickyConstraints();
}
void PaintLayerScrollableArea::clampScrollOffsetAfterOverflowChange() {

Powered by Google App Engine
This is Rietveld 408576698