Index: Source/core/dom/ClassNodeList.cpp |
diff --git a/Source/core/dom/ClassNodeList.cpp b/Source/core/dom/ClassNodeList.cpp |
index 8b3621826798a88ad31d864d7f72d49a0007d368..262bc582c01b5547c126214a1ea754fd818221f3 100644 |
--- a/Source/core/dom/ClassNodeList.cpp |
+++ b/Source/core/dom/ClassNodeList.cpp |
@@ -35,7 +35,7 @@ |
namespace WebCore { |
-ClassNodeList::ClassNodeList(PassRefPtr<Node> rootNode, const String& classNames) |
+ClassNodeList::ClassNodeList(PassRefPtr<Node> rootNode, const AtomicString& classNames) |
: LiveNodeList(rootNode, ClassNodeListType, InvalidateOnClassAttrChange) |
, m_classNames(classNames, document().inQuirksMode()) |
, m_originalClassNames(classNames) |
@@ -44,7 +44,7 @@ ClassNodeList::ClassNodeList(PassRefPtr<Node> rootNode, const String& classNames |
ClassNodeList::~ClassNodeList() |
{ |
- ownerNode()->nodeLists()->removeCacheWithName(this, ClassNodeListType, m_originalClassNames); |
+ ownerNode()->nodeLists()->removeCacheWithAtomicName(this, ClassNodeListType, m_originalClassNames); |
} |
bool ClassNodeList::nodeMatches(Element* testNode) const |