| Index: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| index 749fa9ee041b6ddb056b637183ba0c63ab509cf3..8c6f691acaa73280127d870e1cbcd3db7327a4f5 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| @@ -256,10 +256,10 @@ void IndentOutdentCommand::outdentRegion(const VisiblePosition& startOfSelection
|
| // outdentParagraph could move more than one paragraph if the paragraph
|
| // is in a list item. As a result, endAfterSelection and endOfNextParagraph
|
| // could refer to positions no longer in the document.
|
| - if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inShadowIncludingDocument())
|
| + if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().isConnected())
|
| break;
|
|
|
| - if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inShadowIncludingDocument()) {
|
| + if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().isConnected()) {
|
| endOfCurrentParagraph = createVisiblePosition(endingSelection().end());
|
| endOfNextParagraph = endOfParagraph(nextPositionOf(endOfCurrentParagraph));
|
| }
|
|
|