| Index: third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| index ed6a9633137aa6553ed5d71cc70963868ea58646..22a59b0fbe96a2214eb4872fa1e6b996afb69408 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| @@ -113,7 +113,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
|
| insertNodeBefore(breakElement, topBlockquote, editingState);
|
| if (editingState->isAborted())
|
| return;
|
| - setEndingSelection(VisibleSelection(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -125,7 +125,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
|
|
|
| // 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(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -163,7 +163,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
|
|
|
| // If there's nothing inside topBlockquote to move, we're finished.
|
| if (!startNode->isDescendantOf(topBlockquote)) {
|
| - setEndingSelection(VisibleSelection(createVisiblePositionDeprecated(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(createVisiblePositionDeprecated(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional()));
|
| return;
|
| }
|
|
|
| @@ -236,7 +236,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
|
| return;
|
|
|
| // Put the selection right before the break.
|
| - setEndingSelection(VisibleSelection(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
|
| rebalanceWhitespace();
|
| }
|
|
|
|
|