Index: third_party/WebKit/Source/core/editing/SelectionController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
index 390e6def00fd5f4c686b55ea92fb33996e856584..d10d3b77c4ec1a64abf8591c67b956f8e8124bd1 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -691,14 +691,10 @@ void SelectionController::setNonDirectionalSelectionIfNeeded( |
selection().isHandleVisible() == isHandleVisible) |
return; |
- const FrameSelection::SetSelectionOptions options = |
- isHandleVisible |
- ? FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | |
- FrameSelection::HandleVisible |
- : FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle; |
- |
- selection().setSelection(newSelection, options, CursorAlignOnScroll::IfNeeded, |
- granularity); |
+ selection().setSelection( |
+ newSelection, handleVisibility, |
+ FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle, |
+ CursorAlignOnScroll::IfNeeded, granularity); |
} |
void SelectionController::setCaretAtHitTestResult( |