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 d23e67670820d3975ceeee238c20775b8cab8000..84703a9da252b7a6ed79f6d0338ef17fb1fb801e 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -386,6 +386,7 @@ void HTMLTextFormControlElement::setSelectionRange(int start, int end, TextField |
newSelection.setIsDirectional(direction != SelectionHasNoDirection); |
frame->selection().setSelection(newSelection, FrameSelection::DoNotAdjustInFlatTree | FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | (selectionOption == ChangeSelectionAndFocus ? 0 : FrameSelection::DoNotSetFocus)); |
+ frame->selection().revealSelection(); |
if (eventBehaviour == DispatchSelectEvent) |
scheduleSelectEvent(); |
} |