| Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| index a1946e9fa9648d8a6382fdf6e9cbe2317df377cb..5ef43ac06831e6c32437ac5f8e4769fb89acd687 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -364,7 +364,8 @@ void LayoutBlock::layout()
|
| {
|
| LayoutAnalyzer::Scope analyzer(*this);
|
|
|
| - bool needsScrollAnchoring = RuntimeEnabledFeatures::scrollAnchoringEnabled() && hasOverflowClip();
|
| + bool needsScrollAnchoring = hasOverflowClip()
|
| + && getScrollableArea()->shouldPerformScrollAnchoring();
|
| if (needsScrollAnchoring)
|
| getScrollableArea()->scrollAnchor().save();
|
|
|
|
|