| Index: Source/core/editing/BreakBlockquoteCommand.cpp
|
| diff --git a/Source/core/editing/BreakBlockquoteCommand.cpp b/Source/core/editing/BreakBlockquoteCommand.cpp
|
| index 0cb60d965281f014c5a46003c6f8f94aa001e88b..9adb976aea6aa8de34a8632b06d96556a3d76c0e 100644
|
| --- a/Source/core/editing/BreakBlockquoteCommand.cpp
|
| +++ b/Source/core/editing/BreakBlockquoteCommand.cpp
|
| @@ -79,7 +79,7 @@ void BreakBlockquoteCommand::doApply()
|
| // Instead, insert the break before the blockquote, unless the position is as the end of the the quoted content.
|
| if (isFirstVisiblePositionInNode(visiblePos, topBlockquote) && !isLastVisPosInNode) {
|
| insertNodeBefore(breakNode.get(), topBlockquote);
|
| - setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
| + setEndingSelection(VisibleSelection(positionBeforeNode(*breakNode), DOWNSTREAM, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -89,7 +89,7 @@ void BreakBlockquoteCommand::doApply()
|
|
|
| // If we're inserting the break at the end of the quoted content, we don't need to break the quote.
|
| if (isLastVisPosInNode) {
|
| - setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
| + setEndingSelection(VisibleSelection(positionBeforeNode(*breakNode), DOWNSTREAM, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -182,7 +182,7 @@ void BreakBlockquoteCommand::doApply()
|
| addBlockPlaceholderIfNeeded(clonedBlockquote.get());
|
|
|
| // Put the selection right before the break.
|
| - setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
| + setEndingSelection(VisibleSelection(positionBeforeNode(*breakNode), DOWNSTREAM, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| }
|
|
|
|
|