Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: third_party/WebKit/Source/core/dom/NodeListsNodeData.h

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 GarbageCollectedFinalized<NodeListsNodeDa ta> { 36 class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
37 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); 37 WTF_MAKE_NONCOPYABLE(NodeListsNodeData);
38 public: 38 public:
39 ChildNodeList* childNodeList(ContainerNode& node) 39 ChildNodeList* childNodeList(ContainerNode& node)
40 { 40 {
41 ASSERT_UNUSED(node, !m_childNodeList || node == m_childNodeList->virtual OwnerNode()); 41 ASSERT_UNUSED(node, !m_childNodeList || node == m_childNodeList->virtual OwnerNode());
42 return toChildNodeList(m_childNodeList); 42 return toChildNodeList(m_childNodeList);
43 } 43 }
44 44
45 ChildNodeList* ensureChildNodeList(ContainerNode& node) 45 ChildNodeList* ensureChildNodeList(ContainerNode& node)
46 { 46 {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 template <typename Collection> 196 template <typename Collection>
197 inline Collection* ContainerNode::cachedCollection(CollectionType type) 197 inline Collection* ContainerNode::cachedCollection(CollectionType type)
198 { 198 {
199 NodeListsNodeData* nodeLists = this->nodeLists(); 199 NodeListsNodeData* nodeLists = this->nodeLists();
200 return nodeLists ? nodeLists->cached<Collection>(type) : 0; 200 return nodeLists ? nodeLists->cached<Collection>(type) : 0;
201 } 201 }
202 202
203 } // namespace blink 203 } // namespace blink
204 204
205 #endif // NodeListsNodeData_h 205 #endif // NodeListsNodeData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698