Chromium Code Reviews| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| index e017d44a570f1e8ebfdbaf408ecf3730c718fec7..f954b3548960a676c84bd4985ced4d774b024240 100644 |
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
| @@ -1067,9 +1067,9 @@ void ChromeClientImpl::didAssociateFormControlsAfterLoad(LocalFrame* frame) { |
| webframe->autofillClient()->didAssociateFormControlsDynamically(); |
| } |
| -void ChromeClientImpl::showVirtualKeyboardOnElementFocus() { |
| - if (m_webView->client()) |
| - m_webView->client()->showVirtualKeyboardOnElementFocus(); |
| +void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame* frame) { |
| + if (auto* frameWidget = WebLocalFrameImpl::fromFrame(frame)->frameWidget()) |
|
dcheng
2017/02/22 07:26:44
Is this only null in tests? I would prefer not to
EhsanK
2017/02/22 17:10:52
Good point. But unfortunately (and I don't quite k
dcheng
2017/02/23 05:42:29
Hmm, I think you might need to get the local root
EhsanK
2017/02/23 17:24:16
Yes thanks! I was confusing frameWidget() with Get
|
| + frameWidget->client()->showVirtualKeyboardOnElementFocus(); |
| } |
| void ChromeClientImpl::showUnhandledTapUIIfNeeded( |