| Index: Source/core/editing/IndentOutdentCommand.cpp
|
| diff --git a/Source/core/editing/IndentOutdentCommand.cpp b/Source/core/editing/IndentOutdentCommand.cpp
|
| index db201be8366a66c59129ee1dfdb1bad2b19f4452..27d9a0e36c6cfcf9782eee0a01053e800f4b7ccc 100644
|
| --- a/Source/core/editing/IndentOutdentCommand.cpp
|
| +++ b/Source/core/editing/IndentOutdentCommand.cpp
|
| @@ -57,7 +57,7 @@ IndentOutdentCommand::IndentOutdentCommand(Document& document, EIndentType typeO
|
| bool IndentOutdentCommand::tryIndentingAsListItem(const Position& start, const Position& end)
|
| {
|
| // If our selection is not inside a list, bail out.
|
| - RefPtrWillBeRawPtr<Node> lastNodeInSelectedParagraph = start.deprecatedNode();
|
| + RefPtrWillBeRawPtr<Node> lastNodeInSelectedParagraph = start.anchorNode();
|
| RefPtrWillBeRawPtr<HTMLElement> listElement = enclosingList(lastNodeInSelectedParagraph.get());
|
| if (!listElement)
|
| return false;
|
| @@ -184,13 +184,13 @@ void IndentOutdentCommand::outdentParagraph()
|
| return;
|
| }
|
| RefPtrWillBeRawPtr<Node> splitBlockquoteNode = enclosingElement;
|
| - if (Element* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecatedNode())) {
|
| + if (Element* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().anchorNode())) {
|
| if (enclosingBlockFlow != enclosingElement) {
|
| splitBlockquoteNode = splitTreeToNode(enclosingBlockFlow, enclosingElement, true);
|
| } else {
|
| // We split the blockquote at where we start outdenting.
|
| Node* highestInlineNode = highestEnclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), isInline, CannotCrossEditingBoundary, enclosingBlockFlow);
|
| - splitElement(enclosingElement, highestInlineNode ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().deprecatedNode());
|
| + splitElement(enclosingElement, highestInlineNode ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().anchorNode());
|
| }
|
| }
|
| VisiblePosition startOfParagraphToMove(startOfParagraph(visibleStartOfParagraph));
|
|
|