| Index: Source/core/editing/ApplyStyleCommand.cpp
|
| diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
|
| index f7d1948e2013139a4b1ece33e12eb724e602f523..3d1786d37cc4d798052b838d6ce5317bc3cd46ce 100644
|
| --- a/Source/core/editing/ApplyStyleCommand.cpp
|
| +++ b/Source/core/editing/ApplyStyleCommand.cpp
|
| @@ -262,8 +262,8 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style)
|
| Node& scope = NodeTraversal::highestAncestorOrSelf(*visibleStart.deepEquivalent().deprecatedNode());
|
| RefPtrWillBeRawPtr<Range> startRange = Range::create(document(), firstPositionInNode(&scope), visibleStart.deepEquivalent().parentAnchoredEquivalent());
|
| RefPtrWillBeRawPtr<Range> endRange = Range::create(document(), firstPositionInNode(&scope), visibleEnd.deepEquivalent().parentAnchoredEquivalent());
|
| - int startIndex = TextIterator::rangeLength(startRange.get(), true);
|
| - int endIndex = TextIterator::rangeLength(endRange.get(), true);
|
| + int startIndex = TextIterator::rangeLength(startRange->startPosition(), startRange->endPosition(), true);
|
| + int endIndex = TextIterator::rangeLength(endRange->startPosition(), endRange->endPosition(), true);
|
|
|
| VisiblePosition paragraphStart(startOfParagraph(visibleStart));
|
| VisiblePosition nextParagraphStart(endOfParagraph(paragraphStart).next());
|
|
|