diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 01:34:34 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 01:34:34 +0000 |
commit | 940e621e882a1fc0ddf641d8b3ed35f75d1b5cd0 (patch) | |
tree | c11f0d94da5b657bc540e1fa857bcc05bf8b998d /chrome/renderer/form_manager.cc | |
parent | 62d6ec58106380383e1054a2a10028c774917316 (diff) | |
download | chromium_src-940e621e882a1fc0ddf641d8b3ed35f75d1b5cd0.zip chromium_src-940e621e882a1fc0ddf641d8b3ed35f75d1b5cd0.tar.gz chromium_src-940e621e882a1fc0ddf641d8b3ed35f75d1b5cd0.tar.bz2 |
AutoFill: Remove one level of indirection when clearing a previewed form.
BUG=48857
TEST=none
Review URL: http://codereview.chromium.org/3029061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/form_manager.cc')
-rw-r--r-- | chrome/renderer/form_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/form_manager.cc b/chrome/renderer/form_manager.cc index ffe43bf..048f347 100644 --- a/chrome/renderer/form_manager.cc +++ b/chrome/renderer/form_manager.cc @@ -618,9 +618,9 @@ bool FormManager::ClearFormWithNode(const WebKit::WebNode& node) { return true; } -bool FormManager::ClearPreviewedForm(const FormData& form) { +bool FormManager::ClearPreviewedFormWithNode(const WebKit::WebNode& node) { FormElement* form_element = NULL; - if (!FindCachedFormElement(form, &form_element)) + if (!FindCachedFormElementWithNode(node, &form_element)) return false; for (size_t i = 0; i < form_element->control_elements.size(); ++i) { |