| 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 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 ASSERT(namespaceURI != starAtom); | 37 ASSERT(namespaceURI != starAtom); |
| 38 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType,
namespaceURI, localName)); | 38 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType,
namespaceURI, localName)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode,
CollectionType type, const AtomicString& localName) | 41 static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode,
CollectionType type, const AtomicString& localName) |
| 42 { | 42 { |
| 43 ASSERT_UNUSED(type, type == TagCollectionType); | 43 ASSERT_UNUSED(type, type == TagCollectionType); |
| 44 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType,
starAtom, localName)); | 44 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType,
starAtom, localName)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual ~TagCollection(); | 47 ~TagCollection() override; |
| 48 | 48 |
| 49 bool elementMatches(const Element&) const; | 49 bool elementMatches(const Element&) const; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 TagCollection(ContainerNode& rootNode, CollectionType, const AtomicString& n
amespaceURI, const AtomicString& localName); | 52 TagCollection(ContainerNode& rootNode, CollectionType, const AtomicString& n
amespaceURI, const AtomicString& localName); |
| 53 | 53 |
| 54 AtomicString m_namespaceURI; | 54 AtomicString m_namespaceURI; |
| 55 AtomicString m_localName; | 55 AtomicString m_localName; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 DEFINE_TYPE_CASTS(TagCollection, LiveNodeListBase, collection, collection->type(
) == TagCollectionType, collection.type() == TagCollectionType); | 58 DEFINE_TYPE_CASTS(TagCollection, LiveNodeListBase, collection, collection->type(
) == TagCollectionType, collection.type() == TagCollectionType); |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // TagCollection_h | 62 #endif // TagCollection_h |
| OLD | NEW |