Index: Source/core/editing/VisibleUnits.cpp |
diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp |
index 64518ec2174effabb75b274eda7c18bbd87dbaac..0ad36fa6fb0e0aab66d9fafc0c96f76e45316861 100644 |
--- a/Source/core/editing/VisibleUnits.cpp |
+++ b/Source/core/editing/VisibleUnits.cpp |
@@ -994,7 +994,7 @@ VisiblePosition nextLinePosition(const VisiblePosition &visiblePosition, int lin |
if (!root) { |
// FIXME: We need do the same in previousLinePosition. |
Node* child = node->traverseToChildAt(p.deprecatedEditingOffset()); |
- node = child ? child : &node->lastDescendantOrSelf(); |
+ node = child ? child : &NodeTraversal::lastWithinOrSelf(*node); |
Position position = nextRootInlineBoxCandidatePosition(node, visiblePosition, editableType); |
if (position.isNotNull()) { |
RenderedPosition renderedPosition((VisiblePosition(position))); |