| Index: third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| index f3c8f55b5a766928778e7fe5222a7b51fc07b79f..f762c0f5907b5964358e0aced3fa506c0e7d639c 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -163,10 +163,7 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange
|
| element().updateView();
|
|
|
| unsigned max = visibleValue().length();
|
| - if (element().focused())
|
| - element().setSelectionRange(max, max, SelectionHasNoDirection, NotDispatchSelectEvent);
|
| - else
|
| - element().cacheSelectionInResponseToSetValue(max);
|
| + element().setSelectionRange(max, max, SelectionHasNoDirection, NotDispatchSelectEvent);
|
|
|
| if (!valueChanged)
|
| return;
|
|
|