Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: third_party/WebKit/Source/web/tests/TextFinderTest.cpp

Issue 2904833002: LayoutObject::AbsoluteBoundingBoxRectForRange() should take EphemeralRange (Closed)
Patch Set: RebasedAndUpdatedWithComments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698