Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp |
diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
index 0fddbb1943cef86385830b2eb0a27f6ad20c4fef..7f982205430f57b1261488288021694fffe2114a 100644 |
--- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
+++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
@@ -313,7 +313,7 @@ void InsertParagraphSeparatorCommand::doApply() |
if (isStartOfParagraph(visiblePos)) { |
RefPtr<Element> br = createBreakElement(document()); |
insertNodeAt(br.get(), insertionPosition); |
- insertionPosition = positionInParentAfterNode(br.get()); |
+ insertionPosition = positionInParentAfterNode(*br); |
// If the insertion point is a break element, there is nothing else |
// we need to do. |
if (visiblePos.deepEquivalent().anchorNode()->renderer()->isBR()) { |