OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |