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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2211813002: Revert removal of grammar checking and marking code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix Created 4 years, 4 months 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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 5efc5bcf7949a6193a97d76ec996b9d7fcbbc6fa..82c5ec59cc9ff9a7ed05e9cffa536599ce68b434 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -714,7 +714,7 @@ void Editor::requestSpellcheckingAfterApplyingCommand(CompositeEditCommand* cmd)
const EphemeralRange& insertedRange = toReplaceSelectionCommand(cmd)->insertedRange();
if (insertedRange.isNull())
return;
- spellChecker().chunkAndMarkAllMisspellings(cmd->endingSelection().rootEditableElement(), insertedRange);
+ spellChecker().chunkAndMarkAllMisspellingsAndBadGrammar(cmd->endingSelection().rootEditableElement(), insertedRange);
}
void Editor::appliedEditing(CompositeEditCommand* cmd)

Powered by Google App Engine
This is Rietveld 408576698