| Index: webkit/glue/form_field.cc
|
| diff --git a/webkit/glue/form_field.cc b/webkit/glue/form_field.cc
|
| index 250f04addec5b1fa6573b49cac3a97c98c93b575..0d6ac1deb736dbb30d2836a8b41982da8bc54dd7 100644
|
| --- a/webkit/glue/form_field.cc
|
| +++ b/webkit/glue/form_field.cc
|
| @@ -56,16 +56,25 @@ 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. Same goes for |size_|.
|
| + // the field, so we don't want to compare the values.
|
| return (label_ == field.label_ &&
|
| name_ == field.name_ &&
|
| - form_control_type_ == field.form_control_type_);
|
| + form_control_type_ == field.form_control_type_ &&
|
| + size_ == field.size_);
|
| }
|
|
|
| bool FormField::operator!=(const FormField& field) const {
|
| return !operator==(field);
|
| }
|
|
|
| +bool FormField::StrictlyEqualsHack(const FormField& field) const {
|
| + return (label_ == field.label_ &&
|
| + name_ == field.name_ &&
|
| + value_ == field.value_ &&
|
| + form_control_type_ == field.form_control_type_ &&
|
| + size_ == field.size_);
|
| +}
|
| +
|
| std::ostream& operator<<(std::ostream& os, const FormField& field) {
|
| return os
|
| << UTF16ToUTF8(field.label())
|
|
|