Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/WebCore/dom/LiveNodeList.h

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/dom/Element.cpp ('k') | Source/WebCore/dom/LiveNodeList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Element.cpp ('k') | Source/WebCore/dom/LiveNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698