Index: Source/core/dom/PositionIterator.h |
diff --git a/Source/core/dom/PositionIterator.h b/Source/core/dom/PositionIterator.h |
index 6587f7eb0a54ebe3dc5da5b4352aaf6f093d0242..4d81cd1de3364324a16c8d394d4d80299265a071 100644 |
--- a/Source/core/dom/PositionIterator.h |
+++ b/Source/core/dom/PositionIterator.h |
@@ -45,7 +45,7 @@ public: |
PositionIterator(const Position& pos) |
: m_anchorNode(pos.anchorNode()) |
- , m_nodeAfterPositionInAnchor(m_anchorNode->childNode(pos.deprecatedEditingOffset())) |
+ , m_nodeAfterPositionInAnchor(m_anchorNode->traverseToChildAt(pos.deprecatedEditingOffset())) |
, m_offsetInAnchor(m_nodeAfterPositionInAnchor ? 0 : pos.deprecatedEditingOffset()) |
{ |
} |