| 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..557438861a3934871e5e05db0e9bdbdc364918dc 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -364,7 +364,7 @@ void LayoutBlock::layout()
|
| {
|
| LayoutAnalyzer::Scope analyzer(*this);
|
|
|
| - bool needsScrollAnchoring = RuntimeEnabledFeatures::scrollAnchoringEnabled() && hasOverflowClip();
|
| + bool needsScrollAnchoring = hasOverflowClip() && getScrollableArea()->anchorScroll();
|
| if (needsScrollAnchoring)
|
| getScrollableArea()->scrollAnchor().save();
|
|
|
|
|