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

Unified Diff: Source/core/html/HTMLAllCollection.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/html/HTMLAllCollection.cpp
diff --git a/Source/core/html/HTMLAllCollection.cpp b/Source/core/html/HTMLAllCollection.cpp
index dfbc4661c25779369797a710732d05c58175c6a4..4010931de505246975aee28d92b1181e5847b9c8 100644
--- a/Source/core/html/HTMLAllCollection.cpp
+++ b/Source/core/html/HTMLAllCollection.cpp
@@ -48,7 +48,7 @@ HTMLAllCollection::~HTMLAllCollection()
Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigned index) const
- updateNameCache();
+ updateIdNameCache();
if (Vector<Element*>* cache = idCache(name)) {
if (index < cache->size())

Powered by Google App Engine
This is Rietveld 408576698