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 329a39f1c9581c2f1db41206430ce4bd50b8a298..008907f2a1a25a87bbddfed2b826998705955f9b 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp |
@@ -2082,11 +2082,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, |