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
& className); | 143 DescendantInvalidationSet& ensureAttributeInvalidationSet(const AtomicString
& className); |
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); |
| 148 void addFeaturesToInvalidationSets(const CSSSelector&, const Vector<AtomicSt
ring>& classes, AtomicString id, AtomicString tagName, const Vector<AtomicString
>& attributes); |
147 | 149 |
148 void addClassToInvalidationSet(const AtomicString& className, Element*); | 150 void addClassToInvalidationSet(const AtomicString& className, Element*); |
149 | 151 |
150 InvalidationList& ensurePendingInvalidationList(Element*); | 152 InvalidationList& ensurePendingInvalidationList(Element*); |
151 | 153 |
152 FeatureMetadata m_metadata; | 154 FeatureMetadata m_metadata; |
153 InvalidationSetMap m_classInvalidationSets; | 155 InvalidationSetMap m_classInvalidationSets; |
154 InvalidationSetMap m_attributeInvalidationSets; | 156 InvalidationSetMap m_attributeInvalidationSets; |
155 | 157 |
156 PendingInvalidationMap m_pendingInvalidationMap; | 158 PendingInvalidationMap m_pendingInvalidationMap; |
157 | 159 |
158 bool m_targetedStyleRecalcEnabled; | 160 bool m_targetedStyleRecalcEnabled; |
159 }; | 161 }; |
160 | 162 |
161 | 163 |
162 } // namespace WebCore | 164 } // namespace WebCore |
163 | 165 |
164 #endif // RuleFeature_h | 166 #endif // RuleFeature_h |
OLD | NEW |