| Index: Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
|
| index beb8cd5bfc56b9c21268ca2fe4378d2270542a3b..a3573895d1a9de9d5ca3e90f8c37a3e8b97c311d 100644
|
| --- a/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -163,7 +163,7 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange
|
| if (input->focused())
|
| input->setSelectionRange(max, max);
|
| else
|
| - input->cacheSelectionInResponseToSetValue(max);
|
| + input->setSelectionRange(input->selectionStart(), input->selectionEnd());
|
|
|
| if (!valueChanged)
|
| return;
|
|
|