Index: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
index d8185db1c51537cfe28581138857e88f00b6854c..bef89dc3dca12cf42de7a61e38d2c742c3128a3e 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
@@ -198,12 +198,14 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState) { |
Position canonicalPos = |
createVisiblePosition(insertionPosition).deepEquivalent(); |
if (!startBlock || !startBlock->nonShadowBoundaryParentNode() || |
- isTableCell(startBlock) || isHTMLFormElement(*startBlock) |
+ isTableCell(startBlock) || |
+ isHTMLFormElement(*startBlock) |
// FIXME: If the node is hidden, we don't have a canonical position so we |
// will do the wrong thing for tables and <hr>. |
// https://bugs.webkit.org/show_bug.cgi?id=40342 |
- || (!canonicalPos.isNull() && |
- isDisplayInsideTable(canonicalPos.anchorNode())) || |
+ || |
+ (!canonicalPos.isNull() && |
+ isDisplayInsideTable(canonicalPos.anchorNode())) || |
(!canonicalPos.isNull() && isHTMLHRElement(*canonicalPos.anchorNode()))) { |
applyCommandToComposite(InsertLineBreakCommand::create(document()), |
editingState); |