| 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 93a6409ccda19c3cdd8d60d999b8107abb152129..5a239feeab99cde4e899e5064f4147929a3725f1 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
|
| @@ -121,12 +121,10 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
| insertNodeBefore(breakElement, topBlockquote, editingState);
|
| if (editingState->isAborted())
|
| return;
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(createVisibleSelection(
|
| - SelectionInDOMTree::Builder()
|
| - .collapse(Position::beforeNode(breakElement))
|
| - .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build());
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -141,11 +139,10 @@ 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(createVisibleSelection(
|
| - SelectionInDOMTree::Builder()
|
| - .collapse(Position::beforeNode(breakElement))
|
| - .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build());
|
| rebalanceWhitespace();
|
| return;
|
| }
|
| @@ -186,12 +183,10 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
|
|
| // If there's nothing inside topBlockquote to move, we're finished.
|
| if (!startNode->isDescendantOf(topBlockquote)) {
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| - setEndingSelection(createVisibleSelection(
|
| - SelectionInDOMTree::Builder()
|
| - .collapse(firstPositionInOrBeforeNode(startNode))
|
| - .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(firstPositionInOrBeforeNode(startNode))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build());
|
| return;
|
| }
|
|
|
| @@ -271,14 +266,11 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
|
| if (editingState->isAborted())
|
| return;
|
|
|
| - document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| -
|
| // Put the selection right before the break.
|
| - setEndingSelection(createVisibleSelection(
|
| - SelectionInDOMTree::Builder()
|
| - .collapse(Position::beforeNode(breakElement))
|
| - .setIsDirectional(endingSelection().isDirectional())
|
| - .build()));
|
| + setEndingSelection(SelectionInDOMTree::Builder()
|
| + .collapse(Position::beforeNode(breakElement))
|
| + .setIsDirectional(endingSelection().isDirectional())
|
| + .build());
|
| rebalanceWhitespace();
|
| }
|
|
|
|
|