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..b2257e00d366bb3c87f25dd87c2f83a801908d55 100644 |
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp |
@@ -538,7 +538,7 @@ void TextFieldInputType::updateView() |
void TextFieldInputType::focusAndSelectSpinButtonOwner() |
{ |
element().focus(); |
- element().select(NotDispatchSelectEvent); |
+ element().setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirection, NotDispatchSelectEvent); |
} |
bool TextFieldInputType::shouldSpinButtonRespondToMouseEvents() |