Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp |
diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
index 0e71a2bef961cfbc60dc8066bf495e826e89ef42..7f982205430f57b1261488288021694fffe2114a 100644 |
--- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
+++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
@@ -388,7 +388,7 @@ |
appendNode(createBreakElement(document()).get(), blockToInsert.get()); |
// Move the start node and the siblings of the start node. |
- if (VisiblePosition(insertionPosition) != VisiblePosition(positionBeforeNode(*blockToInsert))) { |
+ if (VisiblePosition(insertionPosition) != VisiblePosition(positionBeforeNode(blockToInsert.get()))) { |
Node* n; |
if (insertionPosition.containerNode() == startBlock) |
n = insertionPosition.computeNodeAfterPosition(); |
@@ -400,7 +400,7 @@ |
splitTreeToNode(splitTo, startBlock.get()); |
for (n = startBlock->firstChild(); n; n = n->nextSibling()) { |
- VisiblePosition beforeNodePosition(positionBeforeNode(*n)); |
+ VisiblePosition beforeNodePosition(positionBeforeNode(n)); |
if (!beforeNodePosition.isNull() && comparePositions(VisiblePosition(insertionPosition), beforeNodePosition) <= 0) |
break; |
} |