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, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 if (collectionType != ChildNodeListType) | 70 if (collectionType != ChildNodeListType) |
71 document()->registerNodeList(this); | 71 document()->registerNodeList(this); |
72 } | 72 } |
73 | 73 |
74 virtual ~LiveNodeListBase() | 74 virtual ~LiveNodeListBase() |
75 { | 75 { |
76 if (type() != ChildNodeListType) | 76 if (type() != ChildNodeListType) |
77 document()->unregisterNodeList(this); | 77 document()->unregisterNodeList(this); |
78 } | 78 } |
79 | 79 |
80 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
81 | |
82 // DOM API | 80 // DOM API |
83 virtual unsigned length() const OVERRIDE; | 81 virtual unsigned length() const OVERRIDE; |
84 virtual Node* item(unsigned offset) const OVERRIDE; | 82 virtual Node* item(unsigned offset) const OVERRIDE; |
85 | 83 |
86 ALWAYS_INLINE bool hasIdNameCache() const { return !isNodeList(type()); } | 84 ALWAYS_INLINE bool hasIdNameCache() const { return !isNodeList(type()); } |
87 ALWAYS_INLINE bool isRootedAtDocument() const { return m_rootType == NodeLis
tIsRootedAtDocument || m_rootType == NodeListIsRootedAtDocumentIfOwnerHasItemref
Attr; } | 85 ALWAYS_INLINE bool isRootedAtDocument() const { return m_rootType == NodeLis
tIsRootedAtDocument || m_rootType == NodeListIsRootedAtDocumentIfOwnerHasItemref
Attr; } |
88 ALWAYS_INLINE NodeListInvalidationType invalidationType() const { return sta
tic_cast<NodeListInvalidationType>(m_invalidationType); } | 86 ALWAYS_INLINE NodeListInvalidationType invalidationType() const { return sta
tic_cast<NodeListInvalidationType>(m_invalidationType); } |
89 ALWAYS_INLINE CollectionType type() const { return static_cast<CollectionTyp
e>(m_collectionType); } | 87 ALWAYS_INLINE CollectionType type() const { return static_cast<CollectionTyp
e>(m_collectionType); } |
90 Node* ownerNode() const { return m_ownerNode.get(); } | 88 Node* ownerNode() const { return m_ownerNode.get(); } |
91 ALWAYS_INLINE void invalidateCache(const QualifiedName* attrName) const | 89 ALWAYS_INLINE void invalidateCache(const QualifiedName* attrName) const |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 virtual Node* namedItem(const AtomicString&) const OVERRIDE; | 196 virtual Node* namedItem(const AtomicString&) const OVERRIDE; |
199 virtual bool nodeMatches(Element*) const = 0; | 197 virtual bool nodeMatches(Element*) const = 0; |
200 | 198 |
201 private: | 199 private: |
202 virtual bool isLiveNodeList() const OVERRIDE { return true; } | 200 virtual bool isLiveNodeList() const OVERRIDE { return true; } |
203 }; | 201 }; |
204 | 202 |
205 } // namespace WebCore | 203 } // namespace WebCore |
206 | 204 |
207 #endif // LiveNodeList_h | 205 #endif // LiveNodeList_h |
OLD | NEW |