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

Side by Side Diff: Source/core/css/RuleFeature.h

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return m_attributeInvalidationSets.contains(attributeName); 74 return m_attributeInvalidationSets.contains(attributeName);
75 } 75 }
76 76
77 bool hasSelectorForClass(const AtomicString& classValue) const 77 bool hasSelectorForClass(const AtomicString& classValue) const
78 { 78 {
79 ASSERT(!classValue.isEmpty()); 79 ASSERT(!classValue.isEmpty());
80 return m_classInvalidationSets.contains(classValue); 80 return m_classInvalidationSets.contains(classValue);
81 } 81 }
82 82
83 bool hasSelectorForId(const AtomicString& idValue) const { return m_idInvali dationSets.contains(idValue); } 83 bool hasSelectorForId(const AtomicString& idValue) const { return m_idInvali dationSets.contains(idValue); }
84 bool hasSelectorForPseudoType(CSSSelector::PseudoType pseudo) const { return m_pseudoInvalidationSets.contains(pseudo); }
85 84
86 void collectInvalidationSetsForClass(InvalidationSetVector&, Element&, const AtomicString& className) const; 85 void collectInvalidationSetsForClass(InvalidationSetVector&, Element&, const AtomicString& className) const;
87 void collectInvalidationSetsForId(InvalidationSetVector&, Element&, const At omicString& id) const; 86 void collectInvalidationSetsForId(InvalidationSetVector&, Element&, const At omicString& id) const;
88 void collectInvalidationSetsForAttribute(InvalidationSetVector&, Element&, c onst QualifiedName& attributeName) const; 87 void collectInvalidationSetsForAttribute(InvalidationSetVector&, Element&, c onst QualifiedName& attributeName) const;
89 void collectInvalidationSetsForPseudoClass(InvalidationSetVector&, Element&, CSSSelector::PseudoType) const; 88 void collectInvalidationSetsForPseudoClass(InvalidationSetVector&, Element&, CSSSelector::PseudoType) const;
90 89
91 bool hasIdsInSelectors() const 90 bool hasIdsInSelectors() const
92 { 91 {
93 return m_idInvalidationSets.size() > 0; 92 return m_idInvalidationSets.size() > 0;
94 } 93 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 InvalidationSetMap m_attributeInvalidationSets; 170 InvalidationSetMap m_attributeInvalidationSets;
172 InvalidationSetMap m_idInvalidationSets; 171 InvalidationSetMap m_idInvalidationSets;
173 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets; 172 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets;
174 }; 173 };
175 174
176 } // namespace blink 175 } // namespace blink
177 176
178 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleFeature); 177 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleFeature);
179 178
180 #endif // RuleFeature_h 179 #endif // RuleFeature_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698