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 2879cc9efe038d8f372021a6157f19adf7061d17..65afcc61c49c33003a181da9d73c6e35ae87497e 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -254,12 +254,14 @@ bool SelectionController::handleMousePressEventSingleClick( |
updateSelectionForMouseDownDispatchingSelectStart( |
innerNode, |
expandSelectionToRespectUserSelectAll( |
- innerNode, createVisibleSelection( |
- SelectionInFlatTree::Builder() |
- .collapse(visiblePos.toPositionWithAffinity()) |
- .build())), |
- CharacterGranularity, isHandleVisible ? HandleVisibility::Visible |
- : HandleVisibility::NotVisible); |
+ innerNode, |
+ createVisibleSelection( |
+ SelectionInFlatTree::Builder() |
+ .collapse(visiblePos.toPositionWithAffinity()) |
+ .build())), |
+ CharacterGranularity, |
+ isHandleVisible ? HandleVisibility::Visible |
+ : HandleVisibility::NotVisible); |
return false; |
} |
@@ -708,10 +710,11 @@ void SelectionController::setCaretAtHitTestResult( |
updateSelectionForMouseDownDispatchingSelectStart( |
innerNode, |
expandSelectionToRespectUserSelectAll( |
- innerNode, createVisibleSelection( |
- SelectionInFlatTree::Builder() |
- .collapse(visiblePos.toPositionWithAffinity()) |
- .build())), |
+ innerNode, |
+ createVisibleSelection( |
+ SelectionInFlatTree::Builder() |
+ .collapse(visiblePos.toPositionWithAffinity()) |
+ .build())), |
CharacterGranularity, HandleVisibility::Visible); |
} |
@@ -778,8 +781,9 @@ bool SelectionController::handleMousePressEventTripleClick( |
return updateSelectionForMouseDownDispatchingSelectStart( |
innerNode, expandSelectionToRespectUserSelectAll(innerNode, newSelection), |
- ParagraphGranularity, isHandleVisible ? HandleVisibility::Visible |
- : HandleVisibility::NotVisible); |
+ ParagraphGranularity, |
+ isHandleVisible ? HandleVisibility::Visible |
+ : HandleVisibility::NotVisible); |
} |
void SelectionController::handleMousePressEvent( |