Index: Source/core/dom/PositionIterator.h |
diff --git a/Source/core/dom/PositionIterator.h b/Source/core/dom/PositionIterator.h |
index c40e53372def490c921dffcab1c441c5c0005bd8..045468e9bbd07648999382405f848304bc87e87e 100644 |
--- a/Source/core/dom/PositionIterator.h |
+++ b/Source/core/dom/PositionIterator.h |
@@ -27,6 +27,7 @@ |
#define PositionIterator_h |
#include "core/dom/Node.h" |
+#include "core/dom/NodeTraversal.h" |
#include "core/dom/Position.h" |
namespace blink { |
@@ -46,7 +47,7 @@ public: |
PositionIterator(const Position& pos) |
: m_anchorNode(pos.anchorNode()) |
- , m_nodeAfterPositionInAnchor(m_anchorNode->traverseToChildAt(pos.deprecatedEditingOffset())) |
+ , m_nodeAfterPositionInAnchor(NodeTraversal::childAt(*m_anchorNode, pos.deprecatedEditingOffset())) |
, m_offsetInAnchor(m_nodeAfterPositionInAnchor ? 0 : pos.deprecatedEditingOffset()) |
{ |
} |