| Index: Source/web/mac/WebSubstringUtil.mm
|
| diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm
|
| index a70bacadc60cad41ab2d79ecfb65ef1e82b8a4fc..152a08d8cacc3e8fe45f487fd0b6ed5b773f71ce 100644
|
| --- a/Source/web/mac/WebSubstringUtil.mm
|
| +++ b/Source/web/mac/WebSubstringUtil.mm
|
| @@ -66,7 +66,7 @@ static NSAttributedString* attributedSubstringFromRange(const Range* range)
|
| size_t length = range->endOffset() - range->startOffset();
|
|
|
| unsigned position = 0;
|
| - for (TextIterator it(range); !it.atEnd() && [string length] < length; it.advance()) {
|
| + for (TextIterator it(range->startPosition(), range->endPosition()); !it.atEnd() && [string length] < length; it.advance()) {
|
| unsigned numCharacters = it.length();
|
| if (!numCharacters)
|
| continue;
|
|
|