Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 263ba12f6687ca66842b49d3a1f48af99598472b..dafa378036dbffafa9a7e3f543321e7c1c636ff2 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -1029,7 +1029,7 @@ PassRefPtrWillBeRawPtr<Range> Internals::rangeFromLocationAndLength(Element* sco |
const EphemeralRange range = PlainTextRange(rangeLocation, rangeLocation + rangeLength).createRange(*scope); |
if (range.isNull()) |
tkent
2015/08/24 09:38:05
We can remove these two lines.
yosin_UTC9
2015/08/24 13:19:22
Done
|
return nullptr; |
- return Range::create(range.document(), range.startPosition(), range.endPosition()); |
+ return createRange(range); |
} |
unsigned Internals::locationFromRange(Element* scope, const Range* range) |