| Index: Source/core/editing/ApplyBlockElementCommand.cpp
|
| diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| index a8b79a542812f9263b4923c89d39d2682e53c29c..4ae2f5739ffb464eefb62e998c9e3edeadf9e7b0 100644
|
| --- a/Source/core/editing/ApplyBlockElementCommand.cpp
|
| +++ b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| @@ -150,7 +150,7 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel
|
| // no longer in the document.
|
| if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inDocument())
|
| break;
|
| - // Sanity check: Make sure our moveParagraph calls didn't remove endOfNextParagraph.deepEquivalent().deprecatedNode()
|
| + // Sanity check: Make sure our moveParagraph calls didn't remove endOfNextParagraph.deepEquivalent().anchorNode()
|
| // If somehow, e.g. mutation event handler, we did, return to prevent crashes.
|
| if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument())
|
| return;
|
| @@ -216,7 +216,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
|
| document().updateLayoutTreeIfNeeded();
|
|
|
| if (const ComputedStyle* endStyle = computedStyleOfEnclosingTextNode(end)) {
|
| - bool isEndAndEndOfLastParagraphOnSameNode = computedStyleOfEnclosingTextNode(m_endOfLastParagraph) && end.deprecatedNode() == m_endOfLastParagraph.deprecatedNode();
|
| + bool isEndAndEndOfLastParagraphOnSameNode = computedStyleOfEnclosingTextNode(m_endOfLastParagraph) && end.anchorNode() == m_endOfLastParagraph.anchorNode();
|
| // Include \n at the end of line if we're at an empty paragraph
|
| if (endStyle->preserveNewline() && start == end && end.offsetInContainerNode() < end.containerNode()->maxCharacterOffset()) {
|
| int endOffset = end.offsetInContainerNode();
|
|
|