Index: Source/core/dom/ChildNodeList.cpp |
diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp |
index 4144c04cbe57fb38c5504c498ba9b4d4830a0515..685fb915b34691358ae32634e23610c62a03375a 100644 |
--- a/Source/core/dom/ChildNodeList.cpp |
+++ b/Source/core/dom/ChildNodeList.cpp |
@@ -38,11 +38,11 @@ ChildNodeList::~ChildNodeList() |
ownerNode()->nodeLists()->removeChildNodeList(this); |
} |
-bool ChildNodeList::nodeMatches(Element* testNode) const |
+bool ChildNodeList::nodeMatches(const Element& testNode) const |
{ |
// This function will be called only by LiveNodeList::namedItem, |
// for an element that was located with getElementById. |
- return testNode->parentNode() == rootNode(); |
+ return testNode.parentNode() == rootNode(); |
} |
} // namespace WebCore |