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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 case InvalidateOnIdNameAttrChange: | 173 case InvalidateOnIdNameAttrChange: |
174 return attrName == HTMLNames::idAttr || attrName == HTMLNames::nameAttr; | 174 return attrName == HTMLNames::idAttr || attrName == HTMLNames::nameAttr; |
175 case InvalidateOnForAttrChange: | 175 case InvalidateOnForAttrChange: |
176 return attrName == HTMLNames::forAttr; | 176 return attrName == HTMLNames::forAttr; |
177 case InvalidateForFormControls: | 177 case InvalidateForFormControls: |
178 return attrName == HTMLNames::nameAttr || attrName == HTMLNames::idAttr
|| attrName == HTMLNames::forAttr | 178 return attrName == HTMLNames::nameAttr || attrName == HTMLNames::idAttr
|| attrName == HTMLNames::forAttr |
179 || attrName == HTMLNames::formAttr || attrName == HTMLNames::typeAtt
r; | 179 || attrName == HTMLNames::formAttr || attrName == HTMLNames::typeAtt
r; |
180 case InvalidateOnHRefAttrChange: | 180 case InvalidateOnHRefAttrChange: |
181 return attrName == HTMLNames::hrefAttr; | 181 return attrName == HTMLNames::hrefAttr; |
182 case InvalidateOnItemAttrChange: | 182 case InvalidateOnItemAttrChange: |
183 #if ENABLE(MICRODATA) | |
184 return attrName == HTMLNames::itemscopeAttr || attrName == HTMLNames::it
empropAttr | |
185 || attrName == HTMLNames::itemtypeAttr || attrName == HTMLNames::ite
mrefAttr || attrName == HTMLNames::idAttr; | |
186 #endif // Intentionally fall through | |
187 case DoNotInvalidateOnAttributeChanges: | 183 case DoNotInvalidateOnAttributeChanges: |
188 return false; | 184 return false; |
189 case InvalidateOnAnyAttrChange: | 185 case InvalidateOnAnyAttrChange: |
190 return true; | 186 return true; |
191 } | 187 } |
192 return false; | 188 return false; |
193 } | 189 } |
194 | 190 |
195 class LiveNodeList : public LiveNodeListBase { | 191 class LiveNodeList : public LiveNodeListBase { |
196 public: | 192 public: |
197 LiveNodeList(PassRefPtr<Node> ownerNode, CollectionType collectionType, Node
ListInvalidationType invalidationType, NodeListRootType rootType = NodeListIsRoo
tedAtNode) | 193 LiveNodeList(PassRefPtr<Node> ownerNode, CollectionType collectionType, Node
ListInvalidationType invalidationType, NodeListRootType rootType = NodeListIsRoo
tedAtNode) |
198 : LiveNodeListBase(ownerNode.get(), rootType, invalidationType, collecti
onType == ChildNodeListType, | 194 : LiveNodeListBase(ownerNode.get(), rootType, invalidationType, collecti
onType == ChildNodeListType, |
199 collectionType, DoesNotOverrideItemAfter) | 195 collectionType, DoesNotOverrideItemAfter) |
200 { } | 196 { } |
201 | 197 |
202 virtual Node* namedItem(const AtomicString&) const OVERRIDE; | 198 virtual Node* namedItem(const AtomicString&) const OVERRIDE; |
203 virtual bool nodeMatches(Element*) const = 0; | 199 virtual bool nodeMatches(Element*) const = 0; |
204 | 200 |
205 private: | 201 private: |
206 virtual bool isLiveNodeList() const OVERRIDE { return true; } | 202 virtual bool isLiveNodeList() const OVERRIDE { return true; } |
207 }; | 203 }; |
208 | 204 |
209 } // namespace WebCore | 205 } // namespace WebCore |
210 | 206 |
211 #endif // LiveNodeList_h | 207 #endif // LiveNodeList_h |
OLD | NEW |