diff options
Diffstat (limited to 'webkit/glue/form_field.cc')
-rw-r--r-- | webkit/glue/form_field.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/webkit/glue/form_field.cc b/webkit/glue/form_field.cc index 250f04a..0d6ac1d 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()) |