diff options
Diffstat (limited to 'Source/WebCore/dom/NameNodeList.cpp')
-rw-r--r-- | Source/WebCore/dom/NameNodeList.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/WebCore/dom/NameNodeList.cpp b/Source/WebCore/dom/NameNodeList.cpp index e26abac46..889188941 100644 --- a/Source/WebCore/dom/NameNodeList.cpp +++ b/Source/WebCore/dom/NameNodeList.cpp @@ -2,7 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2004, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2007, 2014 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -30,7 +30,7 @@ namespace WebCore { using namespace HTMLNames; NameNodeList::NameNodeList(ContainerNode& rootNode, const AtomicString& name) - : LiveNodeList(rootNode, NameNodeListType, InvalidateOnNameAttrChange) + : CachedLiveNodeList(rootNode, InvalidateOnNameAttrChange) , m_name(name) { } @@ -40,9 +40,4 @@ NameNodeList::~NameNodeList() ownerNode().nodeLists()->removeCacheWithAtomicName(this, m_name); } -bool NameNodeList::nodeMatches(Element* testNode) const -{ - return testNode->getNameAttribute() == m_name; -} - } // namespace WebCore |