Index: components/autofill/core/common/form_field_data.h |
diff --git a/components/autofill/core/common/form_field_data.h b/components/autofill/core/common/form_field_data.h |
index a4de0a2236c10ac6aee78afe8352afd6db32ffd7..1466bedc0cb9a0cbcd05bc234addfc4e860a0c72 100644 |
--- a/components/autofill/core/common/form_field_data.h |
+++ b/components/autofill/core/common/form_field_data.h |
@@ -56,6 +56,13 @@ struct FormFieldData { |
// Returns true if two form fields are the same, not counting the value. |
bool SameFieldAs(const FormFieldData& field) const; |
+ // SameFieldAs() is a little restricted when field's style changed |
+ // dynamically, like css. |
+ // This method only compares critical attributes of field to check whether |
+ // they are similar enough to be considered as same field if form's |
+ // other information isn't changed. |
+ bool SimilarFieldAs(const FormFieldData& field) const; |
+ |
// Note: operator==() performs a full-field-comparison(byte by byte), this is |
// different from SameFieldAs(), which ignores comparison for those "values" |
// not regarded as part of identity of the field, such as is_autofilled and |