| 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 9767274a2a6a1a2784f48e208702e6774aae7ad4..57259301fdb36d8bed355c79535d5eee37011177 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -456,7 +456,7 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
|
|
|
| // Clear the scroll anchor, unless it is the reason for this scroll.
|
| if (RuntimeEnabledFeatures::scrollAnchoringEnabled() &&
|
| - scrollType != AnchoringScroll)
|
| + scrollType != AnchoringScroll && scrollType != ClampingScroll)
|
| scrollAnchor()->clear();
|
| }
|
|
|
| @@ -813,14 +813,10 @@ void PaintLayerScrollableArea::clampScrollOffsetsAfterLayout() {
|
| return;
|
| }
|
|
|
| - // Restore before clamping because clamping clears the scroll anchor.
|
| - if (shouldPerformScrollAnchoring())
|
| - m_scrollAnchor.restore();
|
| -
|
| if (scrollOriginChanged())
|
| setScrollOffsetUnconditionally(clampScrollOffset(scrollOffset()));
|
| else
|
| - ScrollableArea::setScrollOffset(scrollOffset(), ProgrammaticScroll);
|
| + ScrollableArea::setScrollOffset(scrollOffset(), ClampingScroll);
|
|
|
| setNeedsScrollOffsetClamp(false);
|
| resetScrollOriginChanged();
|
|
|