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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.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/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);

Powered by Google App Engine
This is Rietveld 408576698