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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2953503004: Transfer ownership of InputMethodController from LocalFrame to DOMWindow
Patch Set: Created 3 years, 6 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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 90e2efa7b28ad40920d83754ff273ea0deffa1ff..16d2ef733cd0a487f386a41d5d6abf794292bec3 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -44,6 +44,7 @@
#include "core/dom/UserGestureIndicator.h"
#include "core/dom/custom/CustomElementRegistry.h"
#include "core/editing/Editor.h"
+#include "core/editing/InputMethodController.h"
#include "core/events/DOMWindowEventQueue.h"
#include "core/events/HashChangeEvent.h"
#include "core/events/MessageEvent.h"
@@ -277,7 +278,8 @@ LocalDOMWindow::LocalDOMWindow(LocalFrame& frame)
this,
&LocalDOMWindow::WarnUnusedPreloads),
should_print_when_finished_loading_(false),
- custom_elements_(this, nullptr) {}
+ custom_elements_(this, nullptr),
+ input_method_controller_(InputMethodController::Create(frame)) {}
void LocalDOMWindow::ClearDocument() {
if (!document_)
@@ -1662,6 +1664,7 @@ DEFINE_TRACE(LocalDOMWindow) {
visitor->Trace(post_message_timers_);
visitor->Trace(view_);
visitor->Trace(event_listener_observers_);
+ visitor->Trace(input_method_controller_);
DOMWindow::Trace(visitor);
Supplementable<LocalDOMWindow>::Trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.h ('k') | third_party/WebKit/Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698