Index: Source/core/dom/NameNodeList.h |
diff --git a/Source/core/dom/NameNodeList.h b/Source/core/dom/NameNodeList.h |
index 2212fb1eeb29d3086d9d5ec2e5e5de4215042990..cf543111510623ef87cd83897d4472d7255eeb88 100644 |
--- a/Source/core/dom/NameNodeList.h |
+++ b/Source/core/dom/NameNodeList.h |
@@ -33,7 +33,7 @@ namespace WebCore { |
// NodeList which lists all Nodes in a Element with a given "name" attribute |
class NameNodeList FINAL : public LiveNodeList { |
public: |
- static PassRefPtr<NameNodeList> create(PassRefPtr<ContainerNode> rootNode, CollectionType type, const AtomicString& name) |
+ static PassRefPtr<NameNodeList> create(ContainerNode& rootNode, CollectionType type, const AtomicString& name) |
{ |
ASSERT_UNUSED(type, type == NameNodeListType); |
return adoptRef(new NameNodeList(rootNode, name)); |
@@ -42,7 +42,7 @@ public: |
virtual ~NameNodeList(); |
private: |
- NameNodeList(PassRefPtr<ContainerNode> rootNode, const AtomicString& name); |
+ NameNodeList(ContainerNode& rootNode, const AtomicString& name); |
virtual bool nodeMatches(const Element&) const OVERRIDE; |