| 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 c49d842dc3b1c44c9b305ff3b20018da7edf3729..183403d5088dc50f8ddebc4ec3271022bcd066bf 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -476,8 +476,8 @@ static unsigned verticalScrollDistance(LocalFrame& frame) {
|
| const ComputedStyle* style = layoutBox.style();
|
| if (!style)
|
| return 0;
|
| - if (!(style->overflowY() == EOverflow::Scroll ||
|
| - style->overflowY() == EOverflow::Auto ||
|
| + if (!(style->overflowY() == EOverflow::kScroll ||
|
| + style->overflowY() == EOverflow::kAuto ||
|
| hasEditableStyle(*focusedElement)))
|
| return 0;
|
| int height = std::min<int>(layoutBox.clientHeight().toInt(),
|
|
|