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; |