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 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 7 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #ifndef HTMLTagCollection_h | 25 #ifndef HTMLTagCollection_h |
26 #define HTMLTagCollection_h | 26 #define HTMLTagCollection_h |
27 | 27 |
28 #include "core/dom/Element.h" | 28 #include "core/dom/Element.h" |
29 #include "core/dom/TagCollection.h" | 29 #include "core/dom/TagCollection.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 // Collection that limits to a particular tag and whose rootNode is in an HTMLDo
cument. | 33 // Collection that limits to a particular tag and whose rootNode is in an HTMLDo
cument. |
34 class HTMLTagCollection FINAL : public TagCollection { | 34 class HTMLTagCollection final : public TagCollection { |
35 public: | 35 public: |
36 static PassRefPtrWillBeRawPtr<HTMLTagCollection> create(ContainerNode& rootN
ode, CollectionType type, const AtomicString& localName) | 36 static PassRefPtrWillBeRawPtr<HTMLTagCollection> create(ContainerNode& rootN
ode, CollectionType type, const AtomicString& localName) |
37 { | 37 { |
38 ASSERT_UNUSED(type, type == HTMLTagCollectionType); | 38 ASSERT_UNUSED(type, type == HTMLTagCollectionType); |
39 return adoptRefWillBeNoop(new HTMLTagCollection(rootNode, localName)); | 39 return adoptRefWillBeNoop(new HTMLTagCollection(rootNode, localName)); |
40 } | 40 } |
41 | 41 |
42 bool elementMatches(const Element&) const; | 42 bool elementMatches(const Element&) const; |
43 | 43 |
44 private: | 44 private: |
(...skipping 12 matching lines...) Expand all Loading... |
57 if (localName != testElement.localName()) | 57 if (localName != testElement.localName()) |
58 return false; | 58 return false; |
59 } | 59 } |
60 ASSERT(m_namespaceURI == starAtom); | 60 ASSERT(m_namespaceURI == starAtom); |
61 return true; | 61 return true; |
62 } | 62 } |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // HTMLTagCollection_h | 66 #endif // HTMLTagCollection_h |
OLD | NEW |