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 1110e6f8d7f0714b0d52a6bd590d26a07ba1e740..35b4b14224ae21c79349026f50d490901ceb5510 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -384,7 +384,7 @@ void HTMLTextFormControlElement::setSelectionRange(int start, int end, TextField |
newSelection.setWithoutValidation(startPosition, endPosition); |
newSelection.setIsDirectional(direction != SelectionHasNoDirection); |
- frame->selection().setSelection(newSelection, FrameSelection::DoNotAdjustInComposedTree | FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | (selectionOption == ChangeSelectionAndFocus ? 0 : FrameSelection::DoNotSetFocus)); |
+ frame->selection().setSelection(newSelection, FrameSelection::DoNotAdjustInFlatTree | FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | (selectionOption == ChangeSelectionAndFocus ? 0 : FrameSelection::DoNotSetFocus)); |
if (eventBehaviour == DispatchSelectEvent) |
scheduleSelectEvent(); |
} |