| Index: webkit/glue/webview_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webview_impl.cc (revision 19957)
|
| +++ webkit/glue/webview_impl.cc (working copy)
|
| @@ -180,6 +180,11 @@
|
| // WebCore::PopupMenuClient implementation.
|
| virtual void valueChanged(unsigned listIndex, bool fireEvents = true) {
|
| text_field_->setValue(suggestions_[listIndex]);
|
| + EditorClientImpl* editor =
|
| + static_cast<EditorClientImpl*>(webview_->page()->editorClient());
|
| + DCHECK(editor);
|
| + editor->OnAutofillSuggestionAccepted(
|
| + static_cast<WebCore::HTMLInputElement*>(text_field_.get()));
|
| }
|
|
|
| virtual WebCore::String itemText(unsigned list_index) const {
|
|
|