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

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

Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)
Patch Set: Add lifecycle transition unit tests Created 3 years, 10 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 8db85385837d2b5d012c1d13cbed6a7897e8960a..009f6297b5c91df24bfd47ffa3a3ca368e21b197 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -739,6 +739,7 @@ void Editor::respondToChangedContents(const VisibleSelection& endingSelection) {
}
spellChecker().updateMarkersForWordsAffectedByEditing(true);
+ frame().setNeedsSpellChecking();
yosin_UTC9 2017/02/23 05:20:48 Can we make Editor owns both SpellChecker and Idle
Xiaocheng 2017/02/23 20:46:07 I have the feeling that editing-related classes sh
yosin_UTC9 2017/02/24 02:10:53 I feel it is strange that SpellChecker tells Local
client().respondToChangedContents();
}
@@ -1681,6 +1682,7 @@ void Editor::respondToChangedSelection(
const Position& oldSelectionStart,
FrameSelection::SetSelectionOptions options) {
spellChecker().respondToChangedSelection(oldSelectionStart, options);
+ frame().setNeedsSpellChecking();
client().respondToChangedSelection(&frame(),
frame()
.selection()

Powered by Google App Engine
This is Rietveld 408576698