| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 92ec953056d098ed231549d7545403ed47bd23a5..9164f891963939eb80c5b5ddbcd7c15e89b8656a 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -814,40 +814,6 @@ unsigned Node::nodeIndex() const
|
| return count;
|
| }
|
|
|
| -template<unsigned type>
|
| -bool shouldInvalidateNodeListCachesForAttr(const unsigned nodeListCounts[], const QualifiedName& attrName)
|
| -{
|
| - if (nodeListCounts[type] && LiveNodeListBase::shouldInvalidateTypeOnAttributeChange(static_cast<NodeListInvalidationType>(type), attrName))
|
| - return true;
|
| - return shouldInvalidateNodeListCachesForAttr<type + 1>(nodeListCounts, attrName);
|
| -}
|
| -
|
| -template<>
|
| -bool shouldInvalidateNodeListCachesForAttr<numNodeListInvalidationTypes>(const unsigned[], const QualifiedName&)
|
| -{
|
| - return false;
|
| -}
|
| -
|
| -bool Document::shouldInvalidateNodeListCaches(const QualifiedName* attrName) const
|
| -{
|
| - if (attrName)
|
| - return shouldInvalidateNodeListCachesForAttr<DoNotInvalidateOnAttributeChanges + 1>(m_nodeListCounts, *attrName);
|
| -
|
| - for (int type = 0; type < numNodeListInvalidationTypes; type++) {
|
| - if (m_nodeListCounts[type])
|
| - return true;
|
| - }
|
| -
|
| - return false;
|
| -}
|
| -
|
| -void Document::invalidateNodeListCaches(const QualifiedName* attrName)
|
| -{
|
| - HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end();
|
| - for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.begin(); it != end; ++it)
|
| - (*it)->invalidateCache(attrName);
|
| -}
|
| -
|
| void Node::invalidateNodeListCachesInAncestors(const QualifiedName* attrName, Element* attributeOwnerElement)
|
| {
|
| if (hasRareData() && (!attrName || isAttributeNode())) {
|
|
|