Index: third_party/WebKit/Source/web/tests/TextFinderTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp |
index 15087f0523ff45b51328fd164d6231bd518bd0a8..c74495b1e9513d5c9d7f5b3af0bc580a35c5f532 100644 |
--- a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp |
@@ -65,8 +65,9 @@ WebFloatRect TextFinderTest::findInPageRect(Node* startContainer, |
int startOffset, |
Node* endContainer, |
int endOffset) { |
- Range* range = Range::create(startContainer->document(), startContainer, |
- startOffset, endContainer, endOffset); |
+ const Position startPosition(startContainer, startOffset); |
+ const Position endPosition(endContainer, endOffset); |
+ EphemeralRange range(startPosition, endPosition); |
return WebFloatRect(findInPageRectFromRange(range)); |
} |