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

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

Issue 2769353002: Only create sticky position constraints for constrained sticky position. (Closed)
Patch Set: Set dependent patch. Created 3 years, 9 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 a6c4b4440b2bc3c701e2f9beaf71d61a293a8e20..f357cf512c8527bfd6c63b58aa2dab8cb959c1df 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1563,7 +1563,7 @@ void PaintLayerScrollableArea::invalidateStickyConstraintsFor(
if (PaintLayerScrollableAreaRareData* d = rareData()) {
d->m_stickyConstraintsMap.erase(layer);
if (needsCompositingUpdate &&
- layer->layoutObject().style()->position() == EPosition::kSticky)
+ layer->layoutObject().style()->hasStickyConstrainedPosition())
layer->setNeedsCompositingInputsUpdate();
}
}

Powered by Google App Engine
This is Rietveld 408576698