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

Unified Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 551403002: Set autofilled property after atuofilled value is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/form_autofill_util.cc
diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc
index 29b6009ed5901acb6b66e7c00196586922dea774..4448f5d16dfc44afa4d625fc8e8a4281d1e15b41 100644
--- a/components/autofill/content/renderer/form_autofill_util.cc
+++ b/components/autofill/content/renderer/form_autofill_util.cc
@@ -540,8 +540,6 @@ void FillFormField(const FormFieldData& data,
if (!data.is_autofilled)
return;
- field->setAutofilled(true);
-
WebInputElement* input_element = toWebInputElement(field);
if (IsCheckableElement(input_element)) {
input_element->setChecked(data.is_checked, true);
@@ -555,6 +553,8 @@ void FillFormField(const FormFieldData& data,
field->setValue(value, true);
}
+ field->setAutofilled(true);
+
if (is_initiating_node &&
((IsTextInput(input_element) || IsMonthInput(input_element)) ||
IsTextAreaElement(*field))) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698