| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 263ba12f6687ca66842b49d3a1f48af99598472b..9dd1de88e29323a343b9ed150a9794c91e4c00f0 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1026,10 +1026,7 @@ PassRefPtrWillBeRawPtr<Range> Internals::rangeFromLocationAndLength(Element* sco
|
| // TextIterator depends on Layout information, make sure layout it up to date.
|
| scope->document().updateLayoutIgnorePendingStylesheets();
|
|
|
| - const EphemeralRange range = PlainTextRange(rangeLocation, rangeLocation + rangeLength).createRange(*scope);
|
| - if (range.isNull())
|
| - return nullptr;
|
| - return Range::create(range.document(), range.startPosition(), range.endPosition());
|
| + return createRange(PlainTextRange(rangeLocation, rangeLocation + rangeLength).createRange(*scope));
|
| }
|
|
|
| unsigned Internals::locationFromRange(Element* scope, const Range* range)
|
|
|