Index: Source/core/frame/LocalFrame.cpp |
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp |
index 7f462b0c8a603e05862ea7138ba88b2e9808fd8b..64a1032dd52822c215722a3bb8ee72a01a7e3d1f 100644 |
--- a/Source/core/frame/LocalFrame.cpp |
+++ b/Source/core/frame/LocalFrame.cpp |
@@ -715,7 +715,7 @@ EphemeralRange LocalFrame::rangeForPoint(const IntPoint& framePoint) |
return EphemeralRange(previousCharacterRange); |
} |
- VisiblePosition next = position.next(); |
+ VisiblePosition next = nextPositionOf(position); |
const EphemeralRange nextCharacterRange = makeRange(position, next); |
if (nextCharacterRange.isNotNull()) { |
IntRect rect = editor().firstRectForRange(nextCharacterRange); |