diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 21:35:36 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 21:35:36 +0000 |
commit | e250e4954c84eabbb9cb6f9d63b0e407996141e6 (patch) | |
tree | 0ff635b09f8a6c8f1f6fdcecfc467be20e0e91c1 /webkit/glue/form_field.cc | |
parent | 0d01f3fd245f3efdad635a69af805722d23be602 (diff) | |
download | chromium_src-e250e4954c84eabbb9cb6f9d63b0e407996141e6.zip chromium_src-e250e4954c84eabbb9cb6f9d63b0e407996141e6.tar.gz chromium_src-e250e4954c84eabbb9cb6f9d63b0e407996141e6.tar.bz2 |
AutoFill: Parse HTMLLabel elements for form control element labels.
BUG=40306
TEST=FormManagerTest.Labels
Review URL: http://codereview.chromium.org/1622004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.cc')
-rw-r--r-- | webkit/glue/form_field.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/webkit/glue/form_field.cc b/webkit/glue/form_field.cc index cddd538..a82283a 100644 --- a/webkit/glue/form_field.cc +++ b/webkit/glue/form_field.cc @@ -53,9 +53,8 @@ FormField::FormField(const string16& label, bool FormField::operator==(const FormField& field) const { // A FormField stores a value, but the value is not part of the identity of // the field, so we don't want to compare the values. - // TODO(jhawkins): Re-enable checking the field label for == once we parse - // labels again. - return (name_ == field.name_ && + return (label_ == field.label_ && + name_ == field.name_ && form_control_type_ == field.form_control_type_); } |