diff options
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r-- | webkit/glue/webview_impl.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index 1dda5c1..b2a6a6d 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -252,6 +252,13 @@ class AutocompletePopupMenuClient WebViewImpl* webview_; }; +static const WebCore::PopupContainerSettings kAutocompletePopupSettings = { + false, // focusOnShow + false, // setTextOnIndexChange + false, // acceptOnAbandon + true, // loopSelectionNavigation +}; + // WebView ---------------------------------------------------------------- /*static*/ @@ -1504,10 +1511,7 @@ void WebViewImpl::AutofillSuggestionsForNode( // have focus so the user can keep typing when the popup is showing. autocomplete_popup_ = WebCore::PopupContainer::create(autocomplete_popup_client_.get(), - false); - autocomplete_popup_->setTextOnIndexChange(false); - autocomplete_popup_->setAcceptOnAbandon(false); - autocomplete_popup_->setLoopSelectionNavigation(true); + kAutocompletePopupSettings); autocomplete_popup_->show(focused_node->getRect(), page_->mainFrame()->view(), 0); } else { |