Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: Source/WebCore/dom/ContainerNode.h

Issue 9910031: Merge 111895 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/media/video-beforeload-remove-source-expected.txt ('k') | Source/WebCore/dom/ContainerNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « LayoutTests/media/video-beforeload-remove-source-expected.txt ('k') | Source/WebCore/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698