diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-14 04:45:58 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-14 04:45:58 +0000 |
commit | 5cbd55c5e7a859e05d1c7f17d9fdc229a12a3244 (patch) | |
tree | 07e1c5ab780ff8d7208ecadac7af5545e998617a | |
parent | e56bbc990c6855f286ebf74e88e1bca0227fe210 (diff) | |
download | chromium_src-5cbd55c5e7a859e05d1c7f17d9fdc229a12a3244.zip chromium_src-5cbd55c5e7a859e05d1c7f17d9fdc229a12a3244.tar.gz chromium_src-5cbd55c5e7a859e05d1c7f17d9fdc229a12a3244.tar.bz2 |
Autocomplete popup should show up when clicking or pressing the up/down key in a text-field, even if the text-field is not empty.
BUG=6437
TEST=Open a form with several fields. Start entering text in a text field to bring-up the autocomplete popup. Click somewhere else (so the popup is closed). Click again in the text-field (at the end). On the 2nd click the autocomplete popup should show.
Review URL: http://codereview.chromium.org/42198
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11698 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index 6355d5b..a3b245c 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -672,8 +672,7 @@ void EditorClientImpl::ShowAutofillForNode(WebCore::Node* node) { if (element->hasLocalName(WebCore::HTMLNames::inputTag)) { WebCore::HTMLInputElement* input_element = static_cast<WebCore::HTMLInputElement*>(element); - if (input_element->value().isEmpty()) - Autofill(input_element, true); + Autofill(input_element, true); } } } |