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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 if (!elementVector) { 723 if (!elementVector) {
724 elementVector = new HeapElementVector; 724 elementVector = new HeapElementVector;
725 map.set(key.impl(), elementVector); 725 map.set(key.impl(), elementVector);
726 } 726 }
727 elementVector->append(element); 727 elementVector->append(element);
728 } 728 }
729 729
730 void HTMLCollection::trace(Visitor* visitor) 730 void HTMLCollection::trace(Visitor* visitor)
731 { 731 {
732 LiveNodeListBase::trace(visitor); 732 LiveNodeListBase::trace(visitor);
733 NodeCacheMap::const_iterator end = m_idCache.end(); 733 visitor->trace(m_idCache);
Mads Ager (chromium) 2013/12/05 12:10:01 Minor cleanup: the visitor knows how to trace coll
734 for (NodeCacheMap::const_iterator it = m_idCache.begin(); it != end; ++it) 734 visitor->trace(m_nameCache);
735 visitor->trace(it->value);
736 end = m_nameCache.end();
737 for (NodeCacheMap::const_iterator it = m_nameCache.begin(); it != end; ++it)
738 visitor->trace(it->value);
739 } 735 }
740 736
741 } // namespace WebCore 737 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698