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

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: Store ancestor overflow layer on PaintLayer to compute before other dependent compositing inputs. Created 4 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 13d47ed65312bccaf58d87b8794b631698091fa5..c494e389db082674b587848e572b198824621fe4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1232,6 +1232,23 @@ void PaintLayerScrollableArea::updateResizerStyle()
}
}
+void PaintLayerScrollableArea::invalidateStickyConstraints()
+{
+ if (PaintLayerScrollableAreaRareData* d = rareData()) {
+ for (PaintLayer* stickyLayer : d->m_stickyConstraintsMap.keys()) {
+ stickyLayer->setNeedsCompositingInputsUpdate();
+ }
+ d->m_stickyConstraintsMap.clear();
+ }
+}
+
+void PaintLayerScrollableArea::invalidateStickyConstraintsFor(PaintLayer* layer)
+{
+ if (PaintLayerScrollableAreaRareData* d = rareData()) {
+ d->m_stickyConstraintsMap.remove(layer);
+ }
+}
+
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