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

Unified Diff: Source/core/dom/ChildNodeList.h

Issue 132923003: Make sure the rootNode of a LiveNodeListBase is always a ContainerNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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 | « Source/core/core.gypi ('k') | Source/core/dom/ChildNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/ChildNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698