| 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-2008, 2011, 2012, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003-2008, 2011, 2012, 2014 Apple Inc. All rights 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 ASSERT_NOT_REACHED(); | 162 ASSERT_NOT_REACHED(); |
| 163 return DoNotInvalidateOnAttributeChanges; | 163 return DoNotInvalidateOnAttributeChanges; |
| 164 } | 164 } |
| 165 | 165 |
| 166 HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type, It
emAfterOverrideType itemAfterOverrideType) | 166 HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type, It
emAfterOverrideType itemAfterOverrideType) |
| 167 : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidation
TypeExcludingIdAndNameAttributes(type), type) | 167 : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidation
TypeExcludingIdAndNameAttributes(type), type) |
| 168 , m_overridesItemAfter(itemAfterOverrideType == OverridesItemAfter) | 168 , m_overridesItemAfter(itemAfterOverrideType == OverridesItemAfter) |
| 169 , m_shouldOnlyIncludeDirectChildren(shouldTypeOnlyIncludeDirectChildren(type
)) | 169 , m_shouldOnlyIncludeDirectChildren(shouldTypeOnlyIncludeDirectChildren(type
)) |
| 170 { | 170 { |
| 171 ScriptWrappable::init(this); | |
| 172 } | 171 } |
| 173 | 172 |
| 174 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLCollection::create(ContainerNode& bas
e, CollectionType type) | 173 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLCollection::create(ContainerNode& bas
e, CollectionType type) |
| 175 { | 174 { |
| 176 return adoptRefWillBeNoop(new HTMLCollection(base, type, DoesNotOverrideItem
After)); | 175 return adoptRefWillBeNoop(new HTMLCollection(base, type, DoesNotOverrideItem
After)); |
| 177 } | 176 } |
| 178 | 177 |
| 179 HTMLCollection::~HTMLCollection() | 178 HTMLCollection::~HTMLCollection() |
| 180 { | 179 { |
| 181 #if !ENABLE(OILPAN) | 180 #if !ENABLE(OILPAN) |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 } | 498 } |
| 500 | 499 |
| 501 void HTMLCollection::trace(Visitor* visitor) | 500 void HTMLCollection::trace(Visitor* visitor) |
| 502 { | 501 { |
| 503 visitor->trace(m_namedItemCache); | 502 visitor->trace(m_namedItemCache); |
| 504 visitor->trace(m_collectionItemsCache); | 503 visitor->trace(m_collectionItemsCache); |
| 505 LiveNodeListBase::trace(visitor); | 504 LiveNodeListBase::trace(visitor); |
| 506 } | 505 } |
| 507 | 506 |
| 508 } // namespace blink | 507 } // namespace blink |
| OLD | NEW |