| 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 9bfd905154757811cdc6ad0321577388f786bc3f..bf2c6936e103ac7e4ef2dd8400212f5c5d28f1c1 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -397,10 +397,12 @@ void LayoutBlock::layout() {
|
|
|
| invalidateBackgroundObscurationStatus();
|
|
|
| - // If clamping is delayed, we will restore in PaintLayerScrollableArea::clampScrollPositionsAfterLayout.
|
| - // Restoring during the intermediate layout may clamp the scroller to the wrong bounds.
|
| - bool clampingDelayed = PaintLayerScrollableArea::
|
| - DelayScrollPositionClampScope::clampingIsDelayed();
|
| + // If clamping is delayed, we will restore in
|
| + // PaintLayerScrollableArea::clampScrollPositionsAfterLayout.
|
| + // Restoring during the intermediate layout may clamp the scroller to the
|
| + // wrong bounds.
|
| + bool clampingDelayed = PaintLayerScrollableArea::DelayScrollOffsetClampScope::
|
| + clampingIsDelayed();
|
| if (needsScrollAnchoring && !clampingDelayed)
|
| getScrollableArea()->scrollAnchor()->restore();
|
|
|
|
|