| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 5a50facd29f34cfd7e38e20e0632135d5b042c34..eca9cfba108274da10c30bb9f000962a4537ed8e 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -605,7 +605,11 @@ void Editor::replaceSelectionWithFragment(DocumentFragment* fragment,
|
| InputEvent::InputType inputType) {
|
| DCHECK(!frame().document()->needsLayoutTreeUpdate());
|
| if (frame().selection().isNone() ||
|
| - !frame().selection().isContentEditable() || !fragment)
|
| + !frame()
|
| + .selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isContentEditable() ||
|
| + !fragment)
|
| return;
|
|
|
| ReplaceSelectionCommand::CommandOptions options =
|
|
|