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

Unified Diff: Source/web/WebRange.cpp

Issue 1315543002: Introduce createRange(const EphemeralRange&) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« Source/core/testing/Internals.cpp ('K') | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRange.cpp
diff --git a/Source/web/WebRange.cpp b/Source/web/WebRange.cpp
index 1846be3ebd39ba3a2cbf8d278c6933176edb4cbd..0c22c42c6525c841b62e1b99873c880e2ba516c2 100644
--- a/Source/web/WebRange.cpp
+++ b/Source/web/WebRange.cpp
@@ -83,7 +83,7 @@ WebRange WebRange::fromDocumentRange(WebLocalFrame* frame, int start, int length
const EphemeralRange range = PlainTextRange(start, start + length).createRange(*scope);
if (range.isNull())
tkent 2015/08/24 09:38:06 We can remove these two lines.
yosin_UTC9 2015/08/24 13:19:22 Done
return WebRange();
- return Range::create(range.document(), range.startPosition(), range.endPosition());
+ return createRange(range);
}
WebRange::WebRange(const PassRefPtrWillBeRawPtr<Range>& range)
« Source/core/testing/Internals.cpp ('K') | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698