| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> | 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "core/dom/EmptyNodeList.h" | 26 #include "core/dom/EmptyNodeList.h" |
| 27 #include "core/dom/QualifiedName.h" | 27 #include "core/dom/QualifiedName.h" |
| 28 #include "core/dom/TagCollection.h" | 28 #include "core/dom/TagCollection.h" |
| 29 #include "core/html/CollectionType.h" | 29 #include "core/html/CollectionType.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "wtf/text/AtomicString.h" | 31 #include "wtf/text/AtomicString.h" |
| 32 #include "wtf/text/StringHash.h" | 32 #include "wtf/text/StringHash.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod
eListsNodeData> { | 36 class NodeListsNodeData final : public NoBaseWillBeGarbageCollectedFinalized<Nod
eListsNodeData> { |
| 37 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); | 37 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); |
| 38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 39 public: | 39 public: |
| 40 ChildNodeList* childNodeList(ContainerNode& node) | 40 ChildNodeList* childNodeList(ContainerNode& node) |
| 41 { | 41 { |
| 42 ASSERT_UNUSED(node, !m_childNodeList || node == m_childNodeList->virtual
OwnerNode()); | 42 ASSERT_UNUSED(node, !m_childNodeList || node == m_childNodeList->virtual
OwnerNode()); |
| 43 return toChildNodeList(m_childNodeList); | 43 return toChildNodeList(m_childNodeList); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PassRefPtrWillBeRawPtr<ChildNodeList> ensureChildNodeList(ContainerNode& nod
e) | 46 PassRefPtrWillBeRawPtr<ChildNodeList> ensureChildNodeList(ContainerNode& nod
e) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 template <typename Collection> | 258 template <typename Collection> |
| 259 inline Collection* ContainerNode::cachedCollection(CollectionType type) | 259 inline Collection* ContainerNode::cachedCollection(CollectionType type) |
| 260 { | 260 { |
| 261 NodeListsNodeData* nodeLists = this->nodeLists(); | 261 NodeListsNodeData* nodeLists = this->nodeLists(); |
| 262 return nodeLists ? nodeLists->cached<Collection>(type) : 0; | 262 return nodeLists ? nodeLists->cached<Collection>(type) : 0; |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace blink | 265 } // namespace blink |
| 266 | 266 |
| 267 #endif // NodeListsNodeData_h | 267 #endif // NodeListsNodeData_h |
| OLD | NEW |