summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r--webkit/glue/dom_operations.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index 9e15d8a..6b560c8 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -445,11 +445,16 @@ void FillPasswordForm(WebView* view,
WebCore::HTMLInputElement* password_element =
form_elements->input_elements[data.basic_data.elements[1]].get();
- AttachForInlineAutocomplete(username_element,
- new PasswordAutocompleteListener(
- new HTMLInputDelegate(username_element),
- new HTMLInputDelegate(password_element),
- data));
+ WebFrameLoaderClient* frame_loader_client =
+ static_cast<WebFrameLoaderClient*>(username_element->document()->
+ frame()->loader()->client());
+ WebFrameImpl* webframe_impl = frame_loader_client->webframe();
+ webframe_impl->GetAutocompleteListener()->AddInputListener(
+ username_element,
+ new PasswordAutocompleteListener(
+ new HTMLInputDelegate(username_element),
+ new HTMLInputDelegate(password_element),
+ data));
}
}