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

Unified Diff: Source/core/html/HTMLCollection.cpp

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix typo Created 7 years 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/HTMLCollection.cpp
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp
index 06bbbcf7d68ceceed955f1987cc1b756257f603a..3f0a92260453d40a989f43e26be463937ec56ee9 100644
--- a/Source/core/html/HTMLCollection.cpp
+++ b/Source/core/html/HTMLCollection.cpp
@@ -730,12 +730,8 @@ void HTMLCollection::append(NodeCacheMap& map, const AtomicString& key, Element*
void HTMLCollection::trace(Visitor* visitor)
{
LiveNodeListBase::trace(visitor);
- NodeCacheMap::const_iterator end = m_idCache.end();
Mads Ager (chromium) 2013/12/05 12:10:01 Minor cleanup: the visitor knows how to trace coll
- for (NodeCacheMap::const_iterator it = m_idCache.begin(); it != end; ++it)
- visitor->trace(it->value);
- end = m_nameCache.end();
- for (NodeCacheMap::const_iterator it = m_nameCache.begin(); it != end; ++it)
- visitor->trace(it->value);
+ visitor->trace(m_idCache);
+ visitor->trace(m_nameCache);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698