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)); |