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

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

Issue 2268893008: Remove NeedToDispatchSelectEvent argument of HTMLTextFormControlElement::setSelectedRange(). (Closed)
Patch Set: Remove NeedToDispatchSelectEvent argument of HTMLTextFormControlElement::setSelectedRange(). 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
Index: third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
index c651810e5febaf0d4b3a437c9f5528617e9dcdb6..04a213f5895fa40158d0a2ba227ba543714106ab 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
@@ -402,7 +402,7 @@ void HTMLTextAreaElement::setValueCommon(const String& newValue, TextFieldEventB
if (isFinishedParsingChildren()) {
// Set the caret to the end of the text value except for initialize.
unsigned endOfString = m_value.length();
- setSelectionRange(endOfString, endOfString, SelectionHasNoDirection, NotDispatchSelectEvent);
+ setSelectionRange(endOfString, endOfString);
}
}
return;
@@ -419,7 +419,7 @@ void HTMLTextAreaElement::setValueCommon(const String& newValue, TextFieldEventB
if (isFinishedParsingChildren()) {
// Set the caret to the end of the text value except for initialize.
unsigned endOfString = m_value.length();
- setSelectionRange(endOfString, endOfString, SelectionHasNoDirection, NotDispatchSelectEvent);
+ setSelectionRange(endOfString, endOfString);
}
notifyFormStateChanged();

Powered by Google App Engine
This is Rietveld 408576698