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

Unified Diff: Source/WebCore/dom/NameNodeList.cpp

Issue 10695128: Merge 120979 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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/WebCore/dom/NameNodeList.h ('k') | Source/WebCore/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/NameNodeList.cpp
===================================================================
--- Source/WebCore/dom/NameNodeList.cpp (revision 122245)
+++ Source/WebCore/dom/NameNodeList.cpp (working copy)
@@ -25,26 +25,27 @@
#include "Element.h"
#include "HTMLNames.h"
+#include "NodeRareData.h"
#include <wtf/Assertions.h>
namespace WebCore {
using namespace HTMLNames;
-NameNodeList::NameNodeList(PassRefPtr<Node> rootNode, const String& name)
+NameNodeList::NameNodeList(PassRefPtr<Node> rootNode, const AtomicString& name)
: DynamicSubtreeNodeList(rootNode)
- , m_nodeName(name)
+ , m_name(name)
{
}
NameNodeList::~NameNodeList()
{
- node()->removeCachedNameNodeList(this, m_nodeName);
+ m_node->nodeLists()->removeCacheWithAtomicName(this, DynamicNodeList::NameNodeListType, m_name);
}
bool NameNodeList::nodeMatches(Element* testNode) const
{
- return testNode->getNameAttribute() == m_nodeName;
+ return testNode->getNameAttribute() == m_name;
}
} // namespace WebCore
« no previous file with comments | « Source/WebCore/dom/NameNodeList.h ('k') | Source/WebCore/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698