| 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 ef35efb93145c8c368544a6b792249d709673e16..38033ae40de06ef7f3d33e99fa5438c9ca89732e 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -366,7 +366,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame)
|
| const ComputedStyle* style = layoutBox.style();
|
| if (!style)
|
| return 0;
|
| - if (!(style->overflowY() == OverflowScroll || style->overflowY() == OverflowAuto || focusedElement->hasEditableStyle()))
|
| + if (!(style->overflowY() == OverflowScroll || style->overflowY() == OverflowAuto || hasEditableStyle(*focusedElement)))
|
| 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));
|
|
|