| 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 b6ee0486012ccc0e828a19258a80d191c7c82a64..39c23f3675e3824ebb44b73b2a1fe389b842f207 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -454,8 +454,8 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
|
| frameView->didChangeScrollOffset();
|
| }
|
|
|
| - // All scrolls clear the fragment anchor.
|
| - frameView->clearFragmentAnchor();
|
| + if (scrollTypeClearsFragmentAnchor(scrollType))
|
| + frameView->clearFragmentAnchor();
|
|
|
| // Clear the scroll anchor, unless it is the reason for this scroll.
|
| if (RuntimeEnabledFeatures::scrollAnchoringEnabled() &&
|
|
|