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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionModifier.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/SelectionModifier.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionModifier.cpp b/third_party/WebKit/Source/core/editing/SelectionModifier.cpp
index 3e9af85fc85c7cf74c1537e57aacfc8928ef7995..068acdcb03ced2e91f9bea793accbd8dd89a3161 100644
--- a/third_party/WebKit/Source/core/editing/SelectionModifier.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionModifier.cpp
@@ -653,9 +653,10 @@ bool SelectionModifier::modify(EAlteration alter,
break;
case FrameSelection::AlterationExtend:
- if (!m_selection.isCaret() && (granularity == WordGranularity ||
- granularity == ParagraphGranularity ||
- granularity == LineGranularity) &&
+ if (!m_selection.isCaret() &&
+ (granularity == WordGranularity ||
+ granularity == ParagraphGranularity ||
+ granularity == LineGranularity) &&
frame() &&
!frame()
->editor()
@@ -721,9 +722,9 @@ bool SelectionModifier::modifyWithPageGranularity(EAlteration alter,
DocumentLifecycle::DisallowTransitionScope disallowTransition(
frame()->document()->lifecycle());
- willBeModified(alter, direction == FrameSelection::DirectionUp
- ? DirectionBackward
- : DirectionForward);
+ willBeModified(alter,
+ direction == FrameSelection::DirectionUp ? DirectionBackward
+ : DirectionForward);
VisiblePosition pos;
LayoutUnit xPos;

Powered by Google App Engine
This is Rietveld 408576698