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

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

Issue 2561543003: Move call path for resetInputMethod (Closed)
Patch Set: 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/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index bae3cea1d0ff453dbdafaf3f688cb67b036bec9d..98b9fb9a4f82c363f17df710d43b93b9b55a5cb6 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -1193,6 +1193,11 @@ WebTextInputType InputMethodController::textInputType() const {
return WebTextInputTypeNone;
}
+void InputMethodController::willChangeFocusTo(Element* newElement) {
yosin_UTC9 2016/12/07 09:38:19 Q: Do we need to take |newElement|? It can be in a
Changwan Ryu 2016/12/08 01:16:29 Removed this parameter for now.
+ if (finishComposingText(DoNotKeepSelection))
yosin_UTC9 2016/12/07 09:38:19 nit: Could you make early return style? if (!fini
Changwan Ryu 2016/12/08 01:16:30 Done
+ frame().chromeClient().resetInputMethod();
+}
+
DEFINE_TRACE(InputMethodController) {
visitor->trace(m_frame);
visitor->trace(m_compositionRange);

Powered by Google App Engine
This is Rietveld 408576698