| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 UseLocalStyleChange, | 133 UseLocalStyleChange, |
| 134 UseSubtreeStyleChange | 134 UseSubtreeStyleChange |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSele
ctor&); | 137 static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSele
ctor&); |
| 138 | 138 |
| 139 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval
idationSetMode); | 139 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval
idationSetMode); |
| 140 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata
&, InvalidationSetMode); | 140 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata
&, InvalidationSetMode); |
| 141 | 141 |
| 142 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl
assName); | 142 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl
assName); |
| 143 DescendantInvalidationSet& ensureAttributeInvalidationSet(const AtomicString
& className); | 143 DescendantInvalidationSet& ensureAttributeInvalidationSet(const AtomicString
& attributeName); |
| 144 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); | 144 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); |
| 145 | 145 |
| 146 InvalidationSetMode updateInvalidationSets(const CSSSelector&); | 146 InvalidationSetMode updateInvalidationSets(const CSSSelector&); |
| 147 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Vector
<AtomicString>& classes, AtomicString& id, AtomicString& tagName, Vector<AtomicS
tring>& attributes); | 147 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Vector
<AtomicString>& classes, AtomicString& id, AtomicString& tagName, Vector<AtomicS
tring>& attributes); |
| 148 void addFeaturesToInvalidationSets(const CSSSelector&, const Vector<AtomicSt
ring>& classes, AtomicString id, AtomicString tagName, const Vector<AtomicString
>& attributes); | 148 void addFeaturesToInvalidationSets(const CSSSelector&, const Vector<AtomicSt
ring>& classes, AtomicString id, AtomicString tagName, const Vector<AtomicString
>& attributes); |
| 149 | 149 |
| 150 void addClassToInvalidationSet(const AtomicString& className, Element*); | 150 void addClassToInvalidationSet(const AtomicString& className, Element*); |
| 151 | 151 |
| 152 InvalidationList& ensurePendingInvalidationList(Element*); | 152 InvalidationList& ensurePendingInvalidationList(Element*); |
| 153 | 153 |
| 154 FeatureMetadata m_metadata; | 154 FeatureMetadata m_metadata; |
| 155 InvalidationSetMap m_classInvalidationSets; | 155 InvalidationSetMap m_classInvalidationSets; |
| 156 InvalidationSetMap m_attributeInvalidationSets; | 156 InvalidationSetMap m_attributeInvalidationSets; |
| 157 | 157 |
| 158 PendingInvalidationMap m_pendingInvalidationMap; | 158 PendingInvalidationMap m_pendingInvalidationMap; |
| 159 | 159 |
| 160 bool m_targetedStyleRecalcEnabled; | 160 bool m_targetedStyleRecalcEnabled; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 | 163 |
| 164 } // namespace WebCore | 164 } // namespace WebCore |
| 165 | 165 |
| 166 #endif // RuleFeature_h | 166 #endif // RuleFeature_h |
| OLD | NEW |