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