| 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 8b8c74baaabe40682127845b6f39b3cd4333445f..9a214c70459e1154ccec5e5fed767a62a95c0b67 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -1080,7 +1080,9 @@ WebTextInputType InputMethodController::textInputType() const {
|
| }
|
|
|
| void InputMethodController::willChangeFocus() {
|
| - finishComposingText(KeepSelection);
|
| + if (!finishComposingText(KeepSelection))
|
| + return;
|
| + frame().chromeClient().resetInputMethod();
|
| }
|
|
|
| DEFINE_TRACE(InputMethodController) {
|
|
|