| Index: webkit/glue/webview_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webview_impl.cc (revision 12500)
|
| +++ webkit/glue/webview_impl.cc (working copy)
|
| @@ -1767,6 +1767,13 @@
|
|
|
| void WebViewImpl::RefreshAutofillPopup() {
|
| DCHECK(autocomplete_popup_showing_);
|
| +
|
| + // Hide the popup if it has become empty.
|
| + if (autocomplete_popup_client_->listSize() == 0) {
|
| + HideAutoCompletePopup();
|
| + return;
|
| + }
|
| +
|
| IntRect old_bounds = autocomplete_popup_->boundsRect();
|
| autocomplete_popup_->refresh();
|
| IntRect new_bounds = autocomplete_popup_->boundsRect();
|
|
|