Index: Source/core/editing/InputMethodController.cpp |
diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp |
index a33edbc7ee5218cd00241883ffb375b317aac9c0..3c695f1e8270c7f1baf763f8e3825d031e9a2993 100644 |
--- a/Source/core/editing/InputMethodController.cpp |
+++ b/Source/core/editing/InputMethodController.cpp |
@@ -359,7 +359,7 @@ PassRefPtrWillBeRawPtr<Range> InputMethodController::compositionRange() const |
PlainTextRange InputMethodController::getSelectionOffsets() const |
{ |
- RefPtrWillBeRawPtr<Range> range = frame().selection().selection().firstRange(); |
+ RefPtrWillBeRawPtr<Range> range = firstRangeOf(frame().selection().selection()); |
if (!range) |
return PlainTextRange(); |
ContainerNode* editable = frame().selection().rootEditableElementOrTreeScopeRootNode(); |