| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index d73063fa545314227b75691fbe8b7ba98250a51a..299108f954c0146e100384dd8370919a51a7b2d6 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -2073,11 +2073,11 @@ const StaticRangeVector* targetRangesForInputEvent(const Node& node) {
|
| if (!hasRichlyEditableStyle(node))
|
| return nullptr;
|
| return new StaticRangeVector(
|
| - 1, StaticRange::create(
|
| - firstRangeOf(node.document()
|
| - .frame()
|
| - ->selection()
|
| - .computeVisibleSelectionInDOMTreeDeprecated())));
|
| + 1, StaticRange::create(createRange(firstEphemeralRangeOf(
|
| + node.document()
|
| + .frame()
|
| + ->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()))));
|
| }
|
|
|
| DispatchEventResult dispatchBeforeInputInsertText(Node* target,
|
|
|