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

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

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP - fix on release, still hits CHECK in LayoutGeometryMap.cpp:156 Created 4 years, 10 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 a515034a173a1fca281b7d209d74ad448e4d77c1..6f94847c9aa12be6e94b1cb9a9734a98eb8d8b96 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1230,6 +1230,16 @@ void PaintLayerScrollableArea::updateResizerStyle()
}
}
+void PaintLayerScrollableArea::invalidateStickyConstraints()
+{
+ if (PaintLayerScrollableAreaRareData* d = rareData()) {
+ for (auto& iter : d->m_stickyConstraintsMap) {
+ iter.key->setNeedsCompositingInputsUpdate();
+ }
+ d->m_stickyConstraintsMap.clear();
+ }
+}
+
IntSize PaintLayerScrollableArea::offsetFromResizeCorner(const IntPoint& absolutePoint) const
{
// Currently the resize corner is either the bottom right corner or the bottom left corner.

Powered by Google App Engine
This is Rietveld 408576698