Index: Source/core/editing/CompositeEditCommand.cpp |
diff --git a/Source/core/editing/CompositeEditCommand.cpp b/Source/core/editing/CompositeEditCommand.cpp |
index 3f7dbda700826d1073970146ea919be2071ab335..c67ff76ecf3c5c86b4ae8b6a3c72c08fffa5262f 100644 |
--- a/Source/core/editing/CompositeEditCommand.cpp |
+++ b/Source/core/editing/CompositeEditCommand.cpp |
@@ -351,7 +351,7 @@ void CompositeEditCommand::appendNode(PassRefPtr<Node> node, PassRefPtr<Containe |
void CompositeEditCommand::removeChildrenInRange(PassRefPtr<Node> node, unsigned from, unsigned to) |
{ |
Vector<RefPtr<Node> > children; |
- Node* child = node->childNode(from); |
+ Node* child = node->traverseToChildAt(from); |
for (unsigned i = from; child && i < to; i++, child = child->nextSibling()) |
children.append(child); |