Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp |
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp |
index 8f5d02fcde04afbc088fa57947373829a2047fe6..664da652785132d4723d465ec769d1e66b5916de 100644 |
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp |
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp |
@@ -855,7 +855,8 @@ void SpellChecker::replaceMisspelledRange(const String& text) { |
if (cancel) |
return; |
- frame().editor().replaceSelectionForSpellChecker(text); |
+ frame().editor().replaceSelectionWithText( |
+ text, false, false, InputEvent::InputType::InsertReplacementText); |
} |
static bool shouldCheckOldSelection(const Position& oldSelectionStart) { |