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 5f441befd71e298a10e2d1941b88b298653d3530..6b5047416edd2d4e599a5c0b2fcbb4f5aa61b412 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -1234,6 +1234,26 @@ void PaintLayerScrollableArea::updateResizerStyle() |
} |
} |
+void PaintLayerScrollableArea::invalidateAllStickyConstraints() |
+{ |
+ if (PaintLayerScrollableAreaRareData* d = rareData()) { |
+ for (PaintLayer* stickyLayer : d->m_stickyConstraintsMap.keys()) { |
+ if (stickyLayer->layoutObject()->style()->position() == StickyPosition) |
+ stickyLayer->setNeedsCompositingInputsUpdate(); |
+ } |
+ d->m_stickyConstraintsMap.clear(); |
+ } |
+} |
+ |
+void PaintLayerScrollableArea::invalidateStickyConstraintsFor(PaintLayer* layer, bool needsCompositingUpdate) |
+{ |
+ if (PaintLayerScrollableAreaRareData* d = rareData()) { |
+ d->m_stickyConstraintsMap.remove(layer); |
+ if (needsCompositingUpdate && layer->layoutObject()->style()->position() == StickyPosition) |
+ layer->setNeedsCompositingInputsUpdate(); |
+ } |
+} |
+ |
IntSize PaintLayerScrollableArea::offsetFromResizeCorner(const IntPoint& absolutePoint) const |
{ |
// Currently the resize corner is either the bottom right corner or the bottom left corner. |