Index: Source/core/editing/TextIterator.cpp |
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp |
index a0e041e37711a138cb41304f1836e854b95ce80b..47e9b88fe1d67800138f03028d853dc6088a597c 100644 |
--- a/Source/core/editing/TextIterator.cpp |
+++ b/Source/core/editing/TextIterator.cpp |
@@ -983,7 +983,7 @@ bool TextIterator::shouldRepresentNodeOffsetZero() |
// The currPos.isNotNull() check is needed because positions in non-HTML content |
// (like SVG) do not have visible positions, and we don't want to emit for them either. |
VisiblePosition startPos = VisiblePosition(Position(m_startContainer, m_startOffset, Position::PositionIsOffsetInAnchor), DOWNSTREAM); |
- VisiblePosition currPos = VisiblePosition(positionBeforeNode(m_node), DOWNSTREAM); |
+ VisiblePosition currPos = VisiblePosition(positionBeforeNode(*m_node), DOWNSTREAM); |
return startPos.isNotNull() && currPos.isNotNull() && !inSameLine(startPos, currPos); |
} |
@@ -1196,7 +1196,7 @@ SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator(const Range* r, |
// instead of calling countChildren() to avoid traversing the children twice. |
if (Node* childAtOffset = endNode->traverseToChildAt(endOffset - 1)) { |
endNode = childAtOffset; |
- endOffset = lastOffsetInNode(endNode); |
+ endOffset = lastOffsetInNode(*endNode); |
} |
} |