Index: Source/WebCore/dom/ClassNodeList.cpp |
=================================================================== |
--- Source/WebCore/dom/ClassNodeList.cpp (revision 122247) |
+++ Source/WebCore/dom/ClassNodeList.cpp (working copy) |
@@ -38,14 +38,14 @@ |
ClassNodeList::ClassNodeList(PassRefPtr<Node> rootNode, const String& classNames) |
: DynamicSubtreeNodeList(rootNode) |
- , m_classNames(classNames, node()->document()->inQuirksMode()) |
+ , m_classNames(classNames, document()->inQuirksMode()) |
, m_originalClassNames(classNames) |
{ |
} |
ClassNodeList::~ClassNodeList() |
{ |
- node()->nodeLists()->removeCacheWithName(this, DynamicNodeList::ClassNodeListType, m_originalClassNames); |
+ ownerNode()->nodeLists()->removeCacheWithName(this, DynamicNodeList::ClassNodeListType, m_originalClassNames); |
} |
bool ClassNodeList::nodeMatches(Element* testNode) const |