Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698