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

Unified Diff: third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp

Issue 2397963002: Reflow comments in //third_party/WebKit/Source/core/editing/commands (Closed)
Patch Set: . Created 4 years, 2 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/FormatBlockCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
index bc3c6ea65d28c3d6e8bee5b3abdec935fa6328a2..9b96ee71020353a796b1a550525db7c2d4836f5b 100644
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
@@ -101,8 +101,9 @@ void FormatBlockCommand::formatRange(const Position& start,
}
if (!blockElement) {
- // Create a new blockquote and insert it as a child of the root editable element. We accomplish
- // this by splitting all parents of the current paragraph up to that point.
+ // Create a new blockquote and insert it as a child of the root editable
+ // element. We accomplish this by splitting all parents of the current
+ // paragraph up to that point.
blockElement = createBlockElement();
insertNodeBefore(blockElement, nodeAfterInsertionPosition, editingState);
if (editingState->isAborted())
@@ -122,7 +123,8 @@ void FormatBlockCommand::formatRange(const Position& start,
if (editingState->isAborted())
return;
- // Copy the inline style of the original block element to the newly created block-style element.
+ // Copy the inline style of the original block element to the newly created
+ // block-style element.
if (outerBlock != nodeAfterInsertionPosition &&
toHTMLElement(nodeAfterInsertionPosition)->hasAttribute(styleAttr))
blockElement->setAttribute(

Powered by Google App Engine
This is Rietveld 408576698