| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |