| Index: Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| diff --git a/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| index 20961e6a8b03d3322125008ce92b5448eb7f9dfe..25f2d3e18f0b00e1214e453eb0496d752ecd260e 100644
|
| --- a/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| +++ b/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| @@ -123,7 +123,7 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel
|
| RefPtrWillBeRawPtr<HTMLElement> blockquoteForNextIndent = nullptr;
|
| VisiblePosition endOfCurrentParagraph = endOfParagraph(startOfSelection);
|
| VisiblePosition endOfLastParagraph = endOfParagraph(endOfSelection);
|
| - VisiblePosition endAfterSelection = endOfParagraph(endOfLastParagraph.next());
|
| + VisiblePosition endAfterSelection = endOfParagraph(nextPositionOf(endOfLastParagraph));
|
| m_endOfLastParagraph = endOfLastParagraph.deepEquivalent();
|
|
|
| bool atEnd = false;
|
| @@ -249,7 +249,7 @@ void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const
|
|
|
| VisiblePosition ApplyBlockElementCommand::endOfNextParagrahSplittingTextNodesIfNeeded(VisiblePosition& endOfCurrentParagraph, Position& start, Position& end)
|
| {
|
| - VisiblePosition endOfNextParagraph = endOfParagraph(endOfCurrentParagraph.next());
|
| + VisiblePosition endOfNextParagraph = endOfParagraph(nextPositionOf(endOfCurrentParagraph));
|
| Position position = endOfNextParagraph.deepEquivalent();
|
| const ComputedStyle* style = computedStyleOfEnclosingTextNode(position);
|
| if (!style)
|
|
|