| Index: Source/core/editing/htmlediting.cpp
|
| diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
|
| index 22d87c90db0a2c122a570e8dcc986797f8d481a0..f36ea5afb019d4b001381f8f4a0657cfe4771ac0 100644
|
| --- a/Source/core/editing/htmlediting.cpp
|
| +++ b/Source/core/editing/htmlediting.cpp
|
| @@ -1097,7 +1097,7 @@ int indexForVisiblePosition(const VisiblePosition& visiblePosition, RefPtrWillBe
|
|
|
| RefPtrWillBeRawPtr<Range> range = Range::create(document, firstPositionInNode(scope.get()), p.parentAnchoredEquivalent());
|
|
|
| - return TextIterator::rangeLength(range.get(), true);
|
| + return TextIterator::rangeLength(range->startPosition(), range->endPosition(), true);
|
| }
|
|
|
| VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope)
|
|
|