Index: Source/core/editing/VisibleUnits.cpp |
diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp |
index bf242cf4d985351683378004fd8064a65d7b7e69..6041d27367becdd61e0ab953b24de07433efc390 100644 |
--- a/Source/core/editing/VisibleUnits.cpp |
+++ b/Source/core/editing/VisibleUnits.cpp |
@@ -1008,7 +1008,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 ? child : node->lastDescendant(); |
+ node = child ? child : &node->lastDescendant(); |
Position position = nextRootInlineBoxCandidatePosition(node, visiblePosition, editableType); |
if (position.isNotNull()) { |
RenderedPosition renderedPosition(position); |