Index: Source/core/dom/ChildNodeList.h |
diff --git a/Source/core/dom/ChildNodeList.h b/Source/core/dom/ChildNodeList.h |
index a0b8240642ca1f968278c7cdcb0337f16083302a..b62ea6e7982903a0a35d0e25e7a330a6e9850df1 100644 |
--- a/Source/core/dom/ChildNodeList.h |
+++ b/Source/core/dom/ChildNodeList.h |
@@ -31,7 +31,7 @@ namespace WebCore { |
class ChildNodeList FINAL : public LiveNodeList { |
public: |
- static PassRefPtr<ChildNodeList> create(PassRefPtr<Node> rootNode) |
+ static PassRefPtr<ChildNodeList> create(PassRefPtr<ContainerNode> rootNode) |
{ |
return adoptRef(new ChildNodeList(rootNode)); |
} |
@@ -39,11 +39,14 @@ public: |
virtual ~ChildNodeList(); |
protected: |
- explicit ChildNodeList(PassRefPtr<Node> rootNode); |
+ explicit ChildNodeList(PassRefPtr<ContainerNode> rootNode); |
+ virtual bool isChildNodeList() const OVERRIDE { return true; } |
virtual bool nodeMatches(const Element&) const OVERRIDE; |
}; |
+DEFINE_TYPE_CASTS(ChildNodeList, NodeList, nodeList, nodeList->isChildNodeList(), nodeList.isChildNodeList()); |
+ |
} // namespace WebCore |
#endif // ChildNodeList_h |