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 39eac7dd2eece7af896d726f85017b5fb2855743..d1dbb2c358809d9d3ad9edc53de629e98dcb24ab 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -471,13 +471,11 @@ void PaintLayerScrollableArea::UpdateScrollOffset( |
frame_view->DidChangeScrollOffset(); |
} |
- if (ScrollTypeClearsFragmentAnchor(scroll_type)) |
+ if (IsExplicitScrollType(scroll_type)) { |
frame_view->ClearFragmentAnchor(); |
- |
- // Clear the scroll anchor, unless it is the reason for this scroll. |
- if (RuntimeEnabledFeatures::scrollAnchoringEnabled() && |
- scroll_type != kAnchoringScroll && scroll_type != kClampingScroll) |
- GetScrollAnchor()->Clear(); |
+ if (RuntimeEnabledFeatures::scrollAnchoringEnabled()) |
+ GetScrollAnchor()->Clear(); |
+ } |
} |
IntSize PaintLayerScrollableArea::ScrollOffsetInt() const { |