| 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 fd960c63a8fba9428bfc6fd6fc729c07f1c0cc33..93a6409ccda19c3cdd8d60d999b8107abb152129 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| @@ -123,8 +123,10 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
| return;
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| setEndingSelection(createVisibleSelection(
|
| - Position::beforeNode(breakElement), TextAffinity::Downstream,
|
| - endingSelection().isDirectional()));
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -140,8 +142,10 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
| // need to break the quote.
|
| if (isLastVisPosInNode) {
|
| setEndingSelection(createVisibleSelection(
|
| - Position::beforeNode(breakElement), TextAffinity::Downstream,
|
| - endingSelection().isDirectional()));
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build()));
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -270,9 +274,11 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| // Put the selection right before the break.
|
| - setEndingSelection(createVisibleSelection(Position::beforeNode(breakElement),
|
| - TextAffinity::Downstream,
|
| - endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build()));
|
| rebalanceWhitespace();
|
| }
|
|
|
|
|