Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2576903002: [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*()/...| (2/3) (Closed)
Patch Set: Xiaocheng's review: Add TODOs and DCHECK comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 56fb4484fd2d59fee560c5a3b2bdab77ad3a53fd..ca4bc682d67edd91abe1096f190c2db2f79abd23 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -854,8 +854,7 @@ void SpellChecker::replaceMisspelledRange(const String& text) {
if (cancel)
return;
- frame().editor().replaceSelectionWithText(
- text, false, false, InputEvent::InputType::InsertReplacementText);
+ frame().editor().replaceSelectionForSpellChecker(text);
}
static bool shouldCheckOldSelection(const Position& oldSelectionStart) {

Powered by Google App Engine
This is Rietveld 408576698