| 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 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * | 21 * |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #ifndef HTMLCollection_h | 24 #ifndef HTMLCollection_h |
| 25 #define HTMLCollection_h | 25 #define HTMLCollection_h |
| 26 | 26 |
| 27 #include "core/dom/LiveNodeListBase.h" | 27 #include "core/dom/LiveNodeListBase.h" |
| 28 #include "core/html/CollectionIndexCache.h" | 28 #include "core/html/CollectionIndexCache.h" |
| 29 #include "core/html/CollectionType.h" | 29 #include "core/html/CollectionType.h" |
| 30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 31 #include "wtf/HashMap.h" | |
| 32 #include "wtf/Vector.h" | |
| 33 | 31 |
| 34 namespace blink { | 32 namespace blink { |
| 35 | 33 |
| 36 class HTMLCollection : public RefCountedWillBeGarbageCollectedFinalized<HTMLColl
ection>, public ScriptWrappable, public LiveNodeListBase { | 34 class HTMLCollection : public RefCountedWillBeGarbageCollectedFinalized<HTMLColl
ection>, public ScriptWrappable, public LiveNodeListBase { |
| 37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCollection); | 35 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCollection); |
| 38 public: | 36 public: |
| 39 enum ItemAfterOverrideType { | 37 enum ItemAfterOverrideType { |
| 40 OverridesItemAfter, | 38 OverridesItemAfter, |
| 41 DoesNotOverrideItemAfter, | 39 DoesNotOverrideItemAfter, |
| 42 }; | 40 }; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 { | 156 { |
| 159 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), *
attrName)) | 157 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), *
attrName)) |
| 160 invalidateCache(); | 158 invalidateCache(); |
| 161 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr) | 159 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr) |
| 162 invalidateIdNameCacheMaps(); | 160 invalidateIdNameCacheMaps(); |
| 163 } | 161 } |
| 164 | 162 |
| 165 } // namespace | 163 } // namespace |
| 166 | 164 |
| 167 #endif | 165 #endif |
| OLD | NEW |