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

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

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile Created 7 years, 6 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
Index: components/autofill/renderer/form_autofill_util.cc
diff --git a/components/autofill/renderer/form_autofill_util.cc b/components/autofill/renderer/form_autofill_util.cc
index 04fc849a6948a233140b40e851d0512977bfbd1c..b1c92fc03117efdafce2c470c233689ef6498cd9 100644
--- a/components/autofill/renderer/form_autofill_util.cc
+++ b/components/autofill/renderer/form_autofill_util.cc
@@ -714,9 +714,10 @@ void WebFormControlElementToFormField(const WebFormControlElement& element,
field->is_autofilled = input_element->isAutofilled();
field->is_focusable = input_element->isFocusable();
- field->should_autocomplete = input_element->autoComplete();
field->is_checkable = IsCheckableElement(input_element);
field->is_checked = input_element->isChecked();
+ field->is_rtl = input_element->directionForFormData() == "rtl";
+ field->should_autocomplete = input_element->autoComplete();
} else if (extract_mask & EXTRACT_OPTIONS) {
// Set option strings on the field if available.
DCHECK(IsSelectElement(element));

Powered by Google App Engine
This is Rietveld 408576698