Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 159503003: Do not cause unnecessary node lists invalidation on id/name attribute change (Closed) Base URL: svn://
Patch Set: Rebase Created 6 years, 10 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index f14328912ea71952de8b4c144e6c1b1a8772239a..d62a80e8135b3a9814f1bb5ab990dd93615315ef 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3560,8 +3560,6 @@ void Document::setCSSTarget(Element* n)
void Document::registerNodeList(LiveNodeListBase* list)
- if (list->hasIdNameCache())
Inactive 2014/02/12 18:26:08 We only want to cause invalidation if the NodeList
- m_nodeListCounts[InvalidateOnIdNameAttrChange]++;
if (list->isRootedAtDocument())
@@ -3569,8 +3567,6 @@ void Document::registerNodeList(LiveNodeListBase* list)
void Document::unregisterNodeList(LiveNodeListBase* list)
- if (list->hasIdNameCache())
- m_nodeListCounts[InvalidateOnIdNameAttrChange]--;
if (list->isRootedAtDocument()) {

Powered by Google App Engine
This is Rietveld 408576698