| Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| index f80bd8832c8e571782fbbf0ecc6ed4e3a9b9c754..046db31e9322c09c370e34c9c4fd41a2c656c8f1 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -276,7 +276,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame)
|
| const ComputedStyle* style = layoutBox.style();
|
| if (!style)
|
| return 0;
|
| - if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || focusedElement->hasEditableStyle()))
|
| + if (!(style->overflowY() == OverflowScroll || style->overflowY() == OverflowAuto || focusedElement->hasEditableStyle()))
|
| return 0;
|
| int height = std::min<int>(layoutBox.clientHeight(), frame.view()->visibleHeight());
|
| return static_cast<unsigned>(max(max<int>(height * ScrollableArea::minFractionToStepWhenPaging(), height - ScrollableArea::maxOverlapBetweenPages()), 1));
|
|
|