| Index: Source/core/editing/ApplyBlockElementCommand.cpp
|
| diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| index 930974d42c8add7ef56f03b8f3716aebb23866ec..6f6cc7019e469458467f6706f902ac2c9abf11d4 100644
|
| --- a/Source/core/editing/ApplyBlockElementCommand.cpp
|
| +++ b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| @@ -130,7 +130,7 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel
|
| endOfCurrentParagraph = end;
|
|
|
| Position afterEnd = end.next();
|
| - Node* enclosingCell = enclosingNodeOfType(start, &isTableCell);
|
| + Handle<Node> enclosingCell = enclosingNodeOfType(start, &isTableCell);
|
| VisiblePosition endOfNextParagraph = endOfNextParagrahSplittingTextNodesIfNeeded(endOfCurrentParagraph, start, end);
|
|
|
| formatRange(start, end, m_endOfLastParagraph, blockquoteForNextIndent);
|
| @@ -227,10 +227,10 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
|
| Handle<Text> endContainer = end.containerText();
|
| splitTextNode(endContainer, end.offsetInContainerNode());
|
| if (isStartAndEndOnSameNode)
|
| - start = firstPositionInOrBeforeNode(endContainer->previousSibling().handle().raw());
|
| + start = firstPositionInOrBeforeNode(endContainer->previousSibling());
|
| if (isEndAndEndOfLastParagraphOnSameNode) {
|
| if (m_endOfLastParagraph.offsetInContainerNode() == end.offsetInContainerNode())
|
| - m_endOfLastParagraph = lastPositionInOrAfterNode(endContainer->previousSibling().handle().raw());
|
| + m_endOfLastParagraph = lastPositionInOrAfterNode(endContainer->previousSibling());
|
| else
|
| m_endOfLastParagraph = Position(endContainer, m_endOfLastParagraph.offsetInContainerNode() - end.offsetInContainerNode());
|
| }
|
|
|