| Index: Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
|
| index 135d7f9c7ca7f25b883b3fc76c6d8bc134747121..45d2da11b227bfbb54e6572bbd8b3059da5e00ad 100644
|
| --- a/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -53,6 +53,7 @@
|
| #include "core/rendering/RenderLayer.h"
|
| #include "core/rendering/RenderTextControlSingleLine.h"
|
| #include "core/rendering/RenderTheme.h"
|
| +#include "platform/text/TextDirection.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
| @@ -470,8 +471,10 @@ bool TextFieldInputType::appendFormData(FormDataList& list, bool multipart) cons
|
| {
|
| InputType::appendFormData(list, multipart);
|
| const AtomicString& dirnameAttrValue = element().fastGetAttribute(dirnameAttr);
|
| - if (!dirnameAttrValue.isNull())
|
| - list.appendData(dirnameAttrValue, element().directionForFormData());
|
| + if (!dirnameAttrValue.isNull()) {
|
| + const AtomicString& dirValue = element().determineDirection() == RTL ? "rtl" :"ltr";
|
| + list.appendData(dirnameAttrValue, dirValue);
|
| + }
|
| return true;
|
| }
|
|
|
|
|