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 986caa059715f012a1e67ec6aae78ea41040e577..cd9aa7521f897b22c7c00caeef21ae5385a3c412 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* start_container, |
int start_offset, |
Node* end_container, |
int end_offset) { |
- Range* range = Range::Create(start_container->GetDocument(), start_container, |
- start_offset, end_container, end_offset); |
+ const Position start_position(start_container, start_offset); |
+ const Position end_position(end_container, end_offset); |
+ const EphemeralRange range(start_position, end_position); |
return WebFloatRect(FindInPageRectFromRange(range)); |
} |