Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
| index 8a687b75995b91133e4d27afa39a57afd308e8fd..5377f4e920119086dd0dc84ad367f7be59df4571 100644 |
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
| @@ -1199,10 +1199,11 @@ LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameInWidget() const { |
| WebPlugin* WebFrameWidgetImpl::FocusedPluginIfInputMethodSupported( |
| LocalFrame* frame) const { |
| - WebPluginContainerBase* container = |
| - WebLocalFrameImpl::CurrentPluginContainer(frame); |
| - if (container && container->SupportsInputMethod()) |
| - return container->Plugin(); |
| + if (frame) { |
|
dcheng
2017/05/19 09:07:02
Do you know if this check is actually needed? I wo
slangley
2017/05/21 23:53:32
Deleted.
|
| + WebPluginContainerBase* container = frame->GetWebPluginContainerBase(); |
| + if (container && container->SupportsInputMethod()) |
| + return container->Plugin(); |
| + } |
| return nullptr; |
| } |