Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index 03148bbd7cb508b7361178b61f323504a17cf2ac..e50140b8ba737491dda3a87659442089c3c2a384 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -1092,14 +1092,14 @@ void FrameSelection::moveRangeSelectionExtent(const IntPoint& contentsPoint) { |
if (computeVisibleSelectionInDOMTreeDeprecated().isNone()) |
return; |
- VisibleSelection newSelection = |
- granularityStrategy()->updateExtent(contentsPoint, m_frame); |
- setSelection(SelectionInDOMTree::Builder(newSelection.asSelection()) |
+ const SetSelectionOptions options = |
+ FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | |
+ FrameSelection::DoNotClearStrategy | UserTriggered; |
+ setSelection(SelectionInDOMTree::Builder( |
+ granularityStrategy()->updateExtent(contentsPoint, m_frame)) |
.setIsHandleVisible(true) |
.build(), |
- FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | |
- FrameSelection::DoNotClearStrategy | UserTriggered, |
- CursorAlignOnScroll::IfNeeded, CharacterGranularity); |
+ options); |
} |
// TODO(yosin): We should make |FrameSelection::moveRangeSelection()| to take |