Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp

Issue 2285613002: Fix selectionDirection attribute value of INPUT/TEXTAREA just after creation (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/selection-direction-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/selection-direction-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698