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

Unified Diff: third_party/WebKit/Source/core/page/FocusController.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/page/FocusController.cpp
diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp
index 89be696b17f9347030c1c3633e9cb95b47477fbe..d40e413b69168f11b53f032bc34ec274e07af2d0 100644
--- a/third_party/WebKit/Source/core/page/FocusController.cpp
+++ b/third_party/WebKit/Source/core/page/FocusController.cpp
@@ -39,6 +39,7 @@
#include "core/editing/EditingUtilities.h" // For firstPositionInOrBeforeNode
#include "core/editing/Editor.h"
#include "core/editing/FrameSelection.h"
+#include "core/editing/InputMethodController.h"
#include "core/events/Event.h"
#include "core/frame/FrameClient.h"
#include "core/frame/FrameView.h"
@@ -1128,7 +1129,8 @@ bool FocusController::setFocusedElement(Element* element,
!relinquishesEditingFocus(*oldFocusedElement))
return false;
- m_page->chromeClient().willSetInputMethodState();
+ if (oldFocusedFrame)
+ oldFocusedFrame->inputMethodController().willChangeFocusTo(element);
yosin_UTC9 2016/12/07 09:38:19 yosin@'s self note: Introducing |willChangeFocusT
Changwan Ryu 2016/12/08 01:16:30 This sounds like a great idea. I was thinking of a
Document* newDocument = nullptr;
if (element)

Powered by Google App Engine
This is Rietveld 408576698