Index: Source/core/editing/InputMethodController.cpp |
diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp |
index d7f13f62a4a92f19c74215fe0c95e5ded3268d15..7b1fa80b28759bae3ca152129728f25dd6e89f73 100644 |
--- a/Source/core/editing/InputMethodController.cpp |
+++ b/Source/core/editing/InputMethodController.cpp |
@@ -308,7 +308,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp |
unsigned start = std::min(baseOffset + selectionStart, extentOffset); |
unsigned end = std::min(std::max(start, baseOffset + selectionEnd), extentOffset); |
- RefPtr<Range> selectedRange = Range::create(&baseNode->document(), baseNode, start, baseNode, end); |
+ RefPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, baseNode, end); |
m_frame->selection().setSelectedRange(selectedRange.get(), DOWNSTREAM, false); |
} |
} |
@@ -357,7 +357,7 @@ PassRefPtr<Range> InputMethodController::compositionRange() const |
unsigned end = std::min(std::max(start, m_compositionEnd), length); |
if (start >= end) |
return 0; |
- return Range::create(&m_compositionNode->document(), m_compositionNode.get(), start, m_compositionNode.get(), end); |
+ return Range::create(m_compositionNode->document(), m_compositionNode.get(), start, m_compositionNode.get(), end); |
} |
PlainTextOffsets InputMethodController::getSelectionOffsets() const |