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 20 matching lines...) Expand all Loading... |
31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 #include "wtf/HashSet.h" | 33 #include "wtf/HashSet.h" |
34 #include "wtf/OwnPtr.h" | 34 #include "wtf/OwnPtr.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 #include "wtf/text/AtomicString.h" | 36 #include "wtf/text/AtomicString.h" |
37 #include "wtf/text/StringHash.h" | 37 #include "wtf/text/StringHash.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class LabelsNodeList; | |
42 class RadioNodeList; | |
43 class TreeScope; | |
44 | |
45 class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod
eListsNodeData> { | 41 class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod
eListsNodeData> { |
46 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); | 42 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); |
47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
48 public: | 44 public: |
49 void clearChildNodeListCache() | 45 void clearChildNodeListCache() |
50 { | 46 { |
51 if (m_childNodeList && m_childNodeList->isChildNodeList()) | 47 if (m_childNodeList && m_childNodeList->isChildNodeList()) |
52 toChildNodeList(m_childNodeList)->invalidateCache(); | 48 toChildNodeList(m_childNodeList)->invalidateCache(); |
53 } | 49 } |
54 | 50 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if ((m_childNodeList ? 1 : 0) + m_atomicNameCaches.size() + m_tagCollectionC
acheNS.size() != 1) | 335 if ((m_childNodeList ? 1 : 0) + m_atomicNameCaches.size() + m_tagCollectionC
acheNS.size() != 1) |
340 return false; | 336 return false; |
341 ownerNode.clearNodeLists(); | 337 ownerNode.clearNodeLists(); |
342 return true; | 338 return true; |
343 } | 339 } |
344 #endif | 340 #endif |
345 | 341 |
346 } // namespace WebCore | 342 } // namespace WebCore |
347 | 343 |
348 #endif // NodeRareData_h | 344 #endif // NodeRareData_h |
OLD | NEW |