Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: webkit/glue/webview_impl.cc

Issue 55040: Fix for empty form autofill popups (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698