| 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 ebc714cd7033d20b045e957f2297a0cc04605211..1b3f1a50e1d49a7acc1344a376b70375e3217020 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -410,7 +410,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame)
|
| return 0;
|
| if (!(style->overflowY() == OverflowScroll || style->overflowY() == OverflowAuto || hasEditableStyle(*focusedElement)))
|
| return 0;
|
| - int height = std::min<int>(layoutBox.clientHeight(), frame.view()->visibleHeight());
|
| + int height = std::min<int>(layoutBox.clientHeight().toInt(), frame.view()->visibleHeight());
|
| return static_cast<unsigned>(max(max<int>(height * ScrollableArea::minFractionToStepWhenPaging(), height - ScrollableArea::maxOverlapBetweenPages()), 1));
|
| }
|
|
|
|
|