Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: components/autofill/core/common/form_field_data.h

Issue 2745803003: autofill-try
Patch Set: autofill-try Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/common/form_data.cc ('k') | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/autofill/core/common/form_data.cc ('k') | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698