Index: Source/core/html/forms/TextFieldInputType.cpp |
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp |
index 1794ee257b71fb8ed582fb0e81a60406cb94ab21..db8f606a9a47bf7ff324ba80e40ade3742de0bb3 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 { |
@@ -468,8 +469,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; |
} |