| 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 34f6042bd34383402b77ab0bbc7975b63fe7d007..51c2e06bcec622958552331b2a8e7ed8a47fdf98 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
| @@ -262,10 +262,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().inDocument())
|
| + if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inShadowIncludingDocument())
|
| break;
|
|
|
| - if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument()) {
|
| + if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inShadowIncludingDocument()) {
|
| endOfCurrentParagraph = createVisiblePosition(endingSelection().end());
|
| endOfNextParagraph = endOfParagraph(nextPositionOf(endOfCurrentParagraph));
|
| }
|
|
|