| 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 80514425502d354c84c85db764df903bbdfe8ee0..f65dd4c030df7a0137deda28a5d07d2f31518990 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -174,17 +174,17 @@ void HTMLTextFormControlElement::updatePlaceholderVisibility()
|
|
|
| void HTMLTextFormControlElement::setSelectionStart(int start)
|
| {
|
| - setSelectionRange(start, std::max(start, selectionEnd()), selectionDirection());
|
| + setSelectionRangeForBinding(start, std::max(start, selectionEnd()), selectionDirection());
|
| }
|
|
|
| void HTMLTextFormControlElement::setSelectionEnd(int end)
|
| {
|
| - setSelectionRange(std::min(end, selectionStart()), end, selectionDirection());
|
| + setSelectionRangeForBinding(std::min(end, selectionStart()), end, selectionDirection());
|
| }
|
|
|
| void HTMLTextFormControlElement::setSelectionDirection(const String& direction)
|
| {
|
| - setSelectionRange(selectionStart(), selectionEnd(), direction);
|
| + setSelectionRangeForBinding(selectionStart(), selectionEnd(), direction);
|
| }
|
|
|
| void HTMLTextFormControlElement::select(NeedToDispatchSelectEvent eventBehaviour)
|
| @@ -263,7 +263,7 @@ void HTMLTextFormControlElement::setRangeText(const String& replacement, unsigne
|
| setSelectionRange(newSelectionStart, newSelectionEnd, SelectionHasNoDirection);
|
| }
|
|
|
| -void HTMLTextFormControlElement::setSelectionRange(int start, int end, const String& directionString)
|
| +void HTMLTextFormControlElement::setSelectionRangeForBinding(int start, int end, const String& directionString)
|
| {
|
| TextFieldSelectionDirection direction = SelectionHasNoDirection;
|
| if (directionString == "forward")
|
|
|