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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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
& attributeName); | 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 |
148 void addFeaturesToInvalidationSets(const CSSSelector&, const Vector<AtomicSt
ring>& classes, AtomicString id, AtomicString tagName, const Vector<AtomicString
>& attributes); | 148 struct InvalidationSetFeatures { |
| 149 Vector<AtomicString> classes; |
| 150 Vector<AtomicString> attributes; |
| 151 AtomicString id; |
| 152 AtomicString tagName; |
| 153 }; |
| 154 |
| 155 static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSe
tFeatures&); |
| 156 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Invali
dationSetFeatures&); |
| 157 void addFeaturesToInvalidationSets(const CSSSelector&, const InvalidationSet
Features&); |
149 | 158 |
150 void addClassToInvalidationSet(const AtomicString& className, Element*); | 159 void addClassToInvalidationSet(const AtomicString& className, Element*); |
151 | 160 |
152 InvalidationList& ensurePendingInvalidationList(Element*); | 161 InvalidationList& ensurePendingInvalidationList(Element*); |
153 | 162 |
154 FeatureMetadata m_metadata; | 163 FeatureMetadata m_metadata; |
155 InvalidationSetMap m_classInvalidationSets; | 164 InvalidationSetMap m_classInvalidationSets; |
156 InvalidationSetMap m_attributeInvalidationSets; | 165 InvalidationSetMap m_attributeInvalidationSets; |
157 | 166 |
158 PendingInvalidationMap m_pendingInvalidationMap; | 167 PendingInvalidationMap m_pendingInvalidationMap; |
159 | 168 |
160 bool m_targetedStyleRecalcEnabled; | 169 bool m_targetedStyleRecalcEnabled; |
161 }; | 170 }; |
162 | 171 |
163 | 172 |
164 } // namespace WebCore | 173 } // namespace WebCore |
165 | 174 |
166 #endif // RuleFeature_h | 175 #endif // RuleFeature_h |
OLD | NEW |