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..500f31df8c62a2a25d8124081f7acdba91887a2d 100644 |
--- a/Source/core/html/forms/TextFieldInputType.cpp |
+++ b/Source/core/html/forms/TextFieldInputType.cpp |
@@ -160,10 +160,11 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange |
input->updateView(); |
unsigned max = visibleValue().length(); |
- if (input->focused()) |
+ if (input->focused() && input->selectionStart() == input->selectionEnd()) |
tkent
2014/07/08 00:34:48
Why is |input->selectionStart() == input->selectio
harpreet.sk
2014/07/08 06:07:59
This was the part of old change but it is not requ
|
input->setSelectionRange(max, max); |
else |
- input->cacheSelectionInResponseToSetValue(max); |
+ input->setSelectionRange(input->selectionStart(), input->selectionEnd()); |
+ |
tkent
2014/07/08 00:34:48
nit: This blank line change is unnecessary.
harpreet.sk
2014/07/08 06:07:59
Done.
|
if (!valueChanged) |
return; |