| Index: Source/core/editing/IndentOutdentCommand.cpp
|
| diff --git a/Source/core/editing/IndentOutdentCommand.cpp b/Source/core/editing/IndentOutdentCommand.cpp
|
| index 2e5d21633fa89ce9cab23e7f5a59af3e88d03df6..2bc18caa8848fee84102d501bc858263e5a9b34d 100644
|
| --- a/Source/core/editing/IndentOutdentCommand.cpp
|
| +++ b/Source/core/editing/IndentOutdentCommand.cpp
|
| @@ -81,7 +81,7 @@ bool IndentOutdentCommand::tryIndentingAsListItem(const Position& start, const P
|
| if (end.anchorNode() == selectedListItem.get() || end.anchorNode()->isDescendantOf(selectedListItem->lastChild())) {
|
| moveParagraphWithClones(VisiblePosition(start), VisiblePosition(end), newList.get(), selectedListItem.get());
|
| } else {
|
| - moveParagraphWithClones(VisiblePosition(start), VisiblePosition(positionAfterNode(selectedListItem->lastChild())), newList.get(), selectedListItem.get());
|
| + moveParagraphWithClones(VisiblePosition(start), VisiblePosition(positionAfterNode(*selectedListItem->lastChild())), newList.get(), selectedListItem.get());
|
| removeNode(selectedListItem.get());
|
| }
|
|
|
| @@ -187,7 +187,7 @@ void IndentOutdentCommand::outdentParagraph()
|
| }
|
| RefPtr<Node> placeholder = createBreakElement(document());
|
| insertNodeBefore(placeholder, splitBlockquoteNode);
|
| - moveParagraph(startOfParagraph(visibleStartOfParagraph), endOfParagraph(visibleEndOfParagraph), VisiblePosition(positionBeforeNode(placeholder.get())), true);
|
| + moveParagraph(startOfParagraph(visibleStartOfParagraph), endOfParagraph(visibleEndOfParagraph), VisiblePosition(positionBeforeNode(*placeholder)), true);
|
| }
|
|
|
| // FIXME: We should merge this function with ApplyBlockElementCommand::formatSelection
|
|
|