Index: Source/core/editing/InputMethodController.cpp |
diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp |
index f1d4018dbf735e082b90f8c3fc7339dfd64f377c..678921331b7dd980149534fb57867cda7a32fb6d 100644 |
--- a/Source/core/editing/InputMethodController.cpp |
+++ b/Source/core/editing/InputMethodController.cpp |
@@ -160,8 +160,8 @@ void InputMethodController::cancelCompositionIfSelectionIsInvalid() |
if (!selection.isNone() && !m_compositionRange->collapsed()) { |
Position start = selection.start(); |
Position end = selection.end(); |
- if (selection.start().compareTo(m_compositionRange->startPosition()) >= 0 |
- && selection.end().compareTo(m_compositionRange->endPosition()) <= 0) |
+ if (start.compareTo(m_compositionRange->startPosition()) >= 0 |
+ && end.compareTo(m_compositionRange->endPosition()) <= 0) |
return; |
} |