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

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

Issue 2828093003: updating Input field value by script should reset IME composition. (Closed)
Patch Set: Created 3 years, 8 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 bca08c29a4491a97c0e211b648a6013629bbbb4f..3e5e433e9dfc594057aee81a6e4b475e4b4ce0c4 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -1755,6 +1755,7 @@ void Editor::RespondToChangedSelection(
const Position& old_selection_start,
FrameSelection::SetSelectionOptions options) {
GetSpellChecker().RespondToChangedSelection(old_selection_start, options);
+ GetFrame().GetInputMethodController().CancelCompositionIfSelectionIsInvalid();
Client().RespondToChangedSelection(&GetFrame(),
GetFrame()
.Selection()
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/editing/InputMethodController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698