| 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 096481982033aec39d0208fae7ca8aaf3b41aba1..3cf8d7a78b5a85384754aea70da733caa35aaf47 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| @@ -345,7 +345,9 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState)
|
| // content will move down a line.
|
| if (isStartOfParagraph(visiblePos)) {
|
| RefPtrWillBeRawPtr<HTMLBRElement> br = HTMLBRElement::create(document());
|
| - insertNodeAt(br.get(), insertionPosition);
|
| + insertNodeAt(br.get(), insertionPosition, editingState);
|
| + if (editingState->isAborted())
|
| + return;
|
| insertionPosition = positionInParentAfterNode(*br);
|
| // If the insertion point is a break element, there is nothing else
|
| // we need to do.
|
|
|