| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 { | 72 { |
| 73 } | 73 } |
| 74 | 74 |
| 75 void trace(Visitor*); | 75 void trace(Visitor*); |
| 76 | 76 |
| 77 RawPtrWillBeMember<Element> element; | 77 RawPtrWillBeMember<Element> element; |
| 78 unsigned count; | 78 unsigned count; |
| 79 WillBeHeapVector<RawPtrWillBeMember<Element> > orderedList; | 79 WillBeHeapVector<RawPtrWillBeMember<Element> > orderedList; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 typedef WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<MapEntry> > Map; | 82 using Map = WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<MapEntry>>; |
| 83 | 83 |
| 84 mutable Map m_map; | 84 mutable Map m_map; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 inline bool DocumentOrderedMap::contains(const AtomicString& id) const | 87 inline bool DocumentOrderedMap::contains(const AtomicString& id) const |
| 88 { | 88 { |
| 89 return m_map.contains(id); | 89 return m_map.contains(id); |
| 90 } | 90 } |
| 91 | 91 |
| 92 inline bool DocumentOrderedMap::containsMultiple(const AtomicString& id) const | 92 inline bool DocumentOrderedMap::containsMultiple(const AtomicString& id) const |
| 93 { | 93 { |
| 94 Map::const_iterator it = m_map.find(id); | 94 Map::const_iterator it = m_map.find(id); |
| 95 return it != m_map.end() && it->value->count > 1; | 95 return it != m_map.end() && it->value->count > 1; |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 #endif // DocumentOrderedMap_h | 100 #endif // DocumentOrderedMap_h |
| OLD | NEW |