Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
index aaebf9ab04d740383ab5f28989f4b9a5b29f9448..6a9536713667a3315252058456866ac12c973217 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -62,8 +62,8 @@ HTMLTextFormControlElement::HTMLTextFormControlElement(const QualifiedName& tagN |
, m_lastChangeWasUserEdit(false) |
, m_cachedSelectionStart(0) |
, m_cachedSelectionEnd(0) |
- , m_cachedSelectionDirection(SelectionHasNoDirection) |
{ |
+ m_cachedSelectionDirection = doc.frame() && doc.frame()->editor().behavior().shouldConsiderSelectionAsDirectional() ? SelectionHasForwardDirection : SelectionHasNoDirection; |
} |
HTMLTextFormControlElement::~HTMLTextFormControlElement() |