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

Unified Diff: Source/core/dom/Node.cpp

Issue 413763004: Get rid of unnecessary isChildNodeList() virtual call in clearChildNodeListCache() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Second proposal Created 6 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/core/dom/Node.h ('k') | Source/core/dom/NodeListsNodeData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index d413a591b5b1828239c0d50fcc274f9b5ba56794..7c5f40a0e2085a4c0c0f31deb6933a7a755d1691 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -838,28 +838,6 @@ unsigned Node::nodeIndex() const
return count;
}
-void Node::invalidateNodeListCachesInAncestors(const QualifiedName* attrName, Element* attributeOwnerElement)
-{
- if (hasRareData() && (!attrName || isAttributeNode())) {
- if (NodeListsNodeData* lists = rareData()->nodeLists())
- lists->clearChildNodeListCache();
- }
-
- // Modifications to attributes that are not associated with an Element can't invalidate NodeList caches.
- if (attrName && !attributeOwnerElement)
- return;
-
- if (!document().shouldInvalidateNodeListCaches(attrName))
- return;
-
- document().invalidateNodeListCaches(attrName);
-
- for (Node* node = this; node; node = node->parentNode()) {
- if (NodeListsNodeData* lists = node->nodeLists())
- lists->invalidateCaches(attrName);
- }
-}
-
NodeListsNodeData* Node::nodeLists()
{
return hasRareData() ? rareData()->nodeLists() : 0;
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/NodeListsNodeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698