Index: Source/core/editing/IndentOutdentCommand.cpp |
diff --git a/Source/core/editing/IndentOutdentCommand.cpp b/Source/core/editing/IndentOutdentCommand.cpp |
index c37dd3c63ee08da3a97ee3888fae6a3f1d01c073..857cc027e4c962212a02fde4a35525727f40c465 100644 |
--- a/Source/core/editing/IndentOutdentCommand.cpp |
+++ b/Source/core/editing/IndentOutdentCommand.cpp |
@@ -176,14 +176,15 @@ void IndentOutdentCommand::outdentParagraph() |
return; |
} |
- Node* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecatedNode()); |
RefPtrWillBeRawPtr<Node> splitBlockquoteNode = enclosingNode; |
- if (enclosingBlockFlow != enclosingNode) |
- splitBlockquoteNode = splitTreeToNode(enclosingBlockFlow, enclosingNode, true); |
- else { |
- // We split the blockquote at where we start outdenting. |
- Node* highestInlineNode = highestEnclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), isInline, CannotCrossEditingBoundary, enclosingBlockFlow); |
- splitElement(toElement(enclosingNode), (highestInlineNode) ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().deprecatedNode()); |
+ if (Node* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecatedNode())) { |
+ if (enclosingBlockFlow != enclosingNode) { |
+ splitBlockquoteNode = splitTreeToNode(enclosingBlockFlow, enclosingNode, true); |
+ } else { |
+ // We split the blockquote at where we start outdenting. |
+ Node* highestInlineNode = highestEnclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), isInline, CannotCrossEditingBoundary, enclosingBlockFlow); |
+ splitElement(toElement(enclosingNode), (highestInlineNode) ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().deprecatedNode()); |
+ } |
} |
RefPtrWillBeRawPtr<Node> placeholder = createBreakElement(document()); |
insertNodeBefore(placeholder, splitBlockquoteNode); |