| Index: Source/web/AutofillPopupMenuClient.cpp
|
| diff --git a/Source/web/AutofillPopupMenuClient.cpp b/Source/web/AutofillPopupMenuClient.cpp
|
| index 2c4fc51aeca625e91ffb2929e97253209e04603f..bedbbe2f9a6fa690904a7c9fffbdedeb61124133 100644
|
| --- a/Source/web/AutofillPopupMenuClient.cpp
|
| +++ b/Source/web/AutofillPopupMenuClient.cpp
|
| @@ -331,15 +331,7 @@ void AutofillPopupMenuClient::setSuggestions(const WebVector<WebString>& names,
|
|
|
| WebViewImpl* AutofillPopupMenuClient::getWebView() const
|
| {
|
| - Frame* frame = m_textField->document()->frame();
|
| - if (!frame)
|
| - return 0;
|
| -
|
| - Page* page = frame->page();
|
| - if (!page)
|
| - return 0;
|
| -
|
| - return static_cast<WebViewImpl*>(page->chrome().client()->webView());
|
| + return WebViewImpl::fromPage(m_textField->document()->page());
|
| }
|
|
|
| RenderStyle* AutofillPopupMenuClient::textFieldStyle() const
|
|
|