| 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 b4cff0c3f69c229e8888bb86fa2bf2d1f5477a4d..21ce048ff2a3167b49e90e9835612d993f93580a 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -1914,7 +1914,9 @@ static bool enabledInRichlyEditableText(LocalFrame& frame,
|
| // We should update selection to canonicalize with current layout and style,
|
| // before accessing |FrameSelection::selection()|.
|
| frame.selection().updateIfNeeded();
|
| - return !frame.selection().isNone() &&
|
| + return !frame.selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isNone() &&
|
| frame.selection()
|
| .computeVisibleSelectionInDOMTreeDeprecated()
|
| .isContentRichlyEditable() &&
|
|
|