| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 unsigned maxDirectAdjacentSelectors; | 122 unsigned maxDirectAdjacentSelectors; |
| 123 HashSet<AtomicString> idsInRules; | 123 HashSet<AtomicString> idsInRules; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 enum InvalidationSetMode { | 126 enum InvalidationSetMode { |
| 127 AddFeatures, | 127 AddFeatures, |
| 128 UseLocalStyleChange, | 128 UseLocalStyleChange, |
| 129 UseSubtreeStyleChange | 129 UseSubtreeStyleChange |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSele
ctor&); | 132 static InvalidationSetMode invalidationSetModeForSelector(const CSSSelector&
); |
| 133 | 133 |
| 134 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval
idationSetMode); | 134 void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, Inval
idationSetMode); |
| 135 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata
&, InvalidationSetMode); | 135 void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata
&, InvalidationSetMode); |
| 136 | 136 |
| 137 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl
assName); | 137 DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& cl
assName); |
| 138 DescendantInvalidationSet& ensureAttributeInvalidationSet(const AtomicString
& attributeName); | 138 DescendantInvalidationSet& ensureAttributeInvalidationSet(const AtomicString
& attributeName); |
| 139 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); | 139 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); |
| 140 | 140 |
| 141 InvalidationSetMode updateInvalidationSets(const CSSSelector&); | 141 InvalidationSetMode updateInvalidationSets(const CSSSelector&); |
| 142 | 142 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 159 InvalidationSetMap m_classInvalidationSets; | 159 InvalidationSetMap m_classInvalidationSets; |
| 160 InvalidationSetMap m_attributeInvalidationSets; | 160 InvalidationSetMap m_attributeInvalidationSets; |
| 161 bool m_targetedStyleRecalcEnabled; | 161 bool m_targetedStyleRecalcEnabled; |
| 162 StyleInvalidator m_styleInvalidator; | 162 StyleInvalidator m_styleInvalidator; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| 167 | 167 |
| 168 #endif // RuleFeature_h | 168 #endif // RuleFeature_h |
| OLD | NEW |