Index: Source/WebCore/dom/ContainerNode.h |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.h (revision 112578) |
+++ Source/WebCore/dom/ContainerNode.h (working copy) |
@@ -166,6 +166,15 @@ |
return toContainerNode(this)->lastChild(); |
} |
+typedef Vector<RefPtr<Node>, 11> NodeVector; |
+ |
+inline void getChildNodes(Node* node, NodeVector& nodes) |
+{ |
+ ASSERT(!nodes.size()); |
+ for (Node* child = node->firstChild(); child; child = child->nextSibling()) |
+ nodes.append(child); |
+} |
+ |
} // namespace WebCore |
#endif // ContainerNode_h |