Index: Source/core/editing/VisibleUnits.cpp |
diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp |
index 49923bfbf56a72aab4a0a8e3eb364419a1d62650..7bb622b8286f2e42327895c23a3bc599045e355a 100644 |
--- a/Source/core/editing/VisibleUnits.cpp |
+++ b/Source/core/editing/VisibleUnits.cpp |
@@ -1002,7 +1002,7 @@ VisiblePosition nextLinePosition(const VisiblePosition &visiblePosition, int lin |
if (!root) { |
// FIXME: We need do the same in previousLinePosition. |
- Node* child = node->childNode(p.deprecatedEditingOffset()); |
+ Node* child = node->traverseToChildAt(p.deprecatedEditingOffset()); |
node = child ? child : &node->lastDescendant(); |
Position position = nextRootInlineBoxCandidatePosition(node, visiblePosition, editableType); |
if (position.isNotNull()) { |