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

Unified Diff: third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. Created 3 years, 7 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/web/WebInputMethodControllerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
index d4a4b12aba8d2e11c9a21dbfdc5b9bbca806ff2d..773c8549a7f35fefbeac8e209e0c184728bca914 100644
--- a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
@@ -157,10 +157,10 @@ InputMethodController& WebInputMethodControllerImpl::GetInputMethodController()
WebPlugin* WebInputMethodControllerImpl::FocusedPluginIfInputMethodSupported()
const {
- WebPluginContainerBase* container =
- WebLocalFrameImpl::CurrentPluginContainer(GetFrame());
- if (container && container->SupportsInputMethod())
+ WebPluginContainerBase* container = GetFrame()->GetWebPluginContainerBase();
+ if (container && container->SupportsInputMethod()) {
return container->Plugin();
+ }
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698