| Index: Source/core/html/HTMLTextFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
|
| index ab88a69cb94915dc5aaf5cfd0935e9ea02aa6eb2..e5dd4a162a85dd38feaaecbc357f448d78255b9a 100644
|
| --- a/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -414,7 +414,7 @@ int HTMLTextFormControlElement::indexForVisiblePosition(const VisiblePosition& p
|
| RefPtrWillBeRawPtr<Range> range = Range::create(*indexPosition.document());
|
| range->setStart(innerEditorElement(), 0, ASSERT_NO_EXCEPTION);
|
| range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCEPTION);
|
| - return TextIterator::rangeLength(range.get());
|
| + return TextIterator::rangeLength(range->startPosition(), range->endPosition());
|
| }
|
|
|
| int HTMLTextFormControlElement::selectionStart() const
|
|
|