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

Unified Diff: Source/core/editing/InputMethodController.cpp

Issue 1315543002: Introduce createRange(const EphemeralRange&) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-24T22:18:16 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
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InputMethodController.cpp
diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp
index b3c08425030c465d61c1ed7b1ed4873dbddfc0bb..a33edbc7ee5218cd00241883ffb375b317aac9c0 100644
--- a/Source/core/editing/InputMethodController.cpp
+++ b/Source/core/editing/InputMethodController.cpp
@@ -354,10 +354,7 @@ EphemeralRange InputMethodController::compositionEphemeralRange() const
PassRefPtrWillBeRawPtr<Range> InputMethodController::compositionRange() const
{
- const EphemeralRange range = compositionEphemeralRange();
- if (range.isNull())
- return nullptr;
- return Range::create(range.document(), range.startPosition(), range.endPosition());
+ return createRange(compositionEphemeralRange());
}
PlainTextRange InputMethodController::getSelectionOffsets() const
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698