Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 30d607bf520724a36dccf3ae0248bb088b6d0f86..9e3d7d883de130761532826f1958c47d0ec12a75 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -46,6 +46,7 @@ |
#include "core/html/HTMLBRElement.h" |
#include "core/html/HTMLFormElement.h" |
#include "core/html/HTMLTemplateElement.h" |
+#include "core/html/HTMLTextAreaElement.h" |
#include "core/html/HTMLTextFormControlElement.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
#include "core/loader/FrameLoader.h" |
@@ -846,7 +847,7 @@ TextDirection HTMLElement::directionalityIfhasDirAutoAttribute(bool& isAuto) con |
TextDirection HTMLElement::directionality(Node** strongDirectionalityTextNode) const |
{ |
- if (isHTMLTextFormControlElement(this)) { |
+ if (isHTMLTextFormControlElement(this) && !isHTMLTextAreaElement(this)) { |
eseidel
2013/08/22 23:32:12
Can we get rid of this code for all other elements
|
HTMLTextFormControlElement* textElement = toHTMLTextFormControlElement(const_cast<HTMLElement*>(this)); |
bool hasStrongDirectionality; |
Unicode::Direction textDirection = textElement->value().defaultWritingDirection(&hasStrongDirectionality); |