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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 return attrName == HTMLNames::nameAttr; | 110 return attrName == HTMLNames::nameAttr; |
111 case InvalidateOnIdNameAttrChange: | 111 case InvalidateOnIdNameAttrChange: |
112 return attrName == HTMLNames::idAttr || attrName == HTMLNames::nameAttr; | 112 return attrName == HTMLNames::idAttr || attrName == HTMLNames::nameAttr; |
113 case InvalidateOnForAttrChange: | 113 case InvalidateOnForAttrChange: |
114 return attrName == HTMLNames::forAttr; | 114 return attrName == HTMLNames::forAttr; |
115 case InvalidateForFormControls: | 115 case InvalidateForFormControls: |
116 return attrName == HTMLNames::nameAttr || attrName == HTMLNames::idAttr
|| attrName == HTMLNames::forAttr | 116 return attrName == HTMLNames::nameAttr || attrName == HTMLNames::idAttr
|| attrName == HTMLNames::forAttr |
117 || attrName == HTMLNames::formAttr || attrName == HTMLNames::typeAtt
r; | 117 || attrName == HTMLNames::formAttr || attrName == HTMLNames::typeAtt
r; |
118 case InvalidateOnHRefAttrChange: | 118 case InvalidateOnHRefAttrChange: |
119 return attrName == HTMLNames::hrefAttr; | 119 return attrName == HTMLNames::hrefAttr; |
120 case InvalidateOnItemAttrChange: | |
121 case DoNotInvalidateOnAttributeChanges: | 120 case DoNotInvalidateOnAttributeChanges: |
122 return false; | 121 return false; |
123 case InvalidateOnAnyAttrChange: | 122 case InvalidateOnAnyAttrChange: |
124 return true; | 123 return true; |
125 } | 124 } |
126 return false; | 125 return false; |
127 } | 126 } |
128 | 127 |
129 class LiveNodeList : public NodeList, public LiveNodeListBase { | 128 class LiveNodeList : public NodeList, public LiveNodeListBase { |
130 public: | 129 public: |
(...skipping 19 matching lines...) Expand all Loading... |
150 | 149 |
151 private: | 150 private: |
152 virtual bool isLiveNodeList() const OVERRIDE FINAL { return true; } | 151 virtual bool isLiveNodeList() const OVERRIDE FINAL { return true; } |
153 | 152 |
154 mutable CollectionIndexCache<LiveNodeList, Element> m_collectionIndexCache; | 153 mutable CollectionIndexCache<LiveNodeList, Element> m_collectionIndexCache; |
155 }; | 154 }; |
156 | 155 |
157 } // namespace WebCore | 156 } // namespace WebCore |
158 | 157 |
159 #endif // LiveNodeList_h | 158 #endif // LiveNodeList_h |
OLD | NEW |