Chromium Code Reviews| 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 getInvalidationSetMode(const CSSSelector&); |
|
esprehn
2014/04/02 00:20:58
We don't usually use "get" like this, invalidation
chrishtr
2014/04/02 04:19:50
Done.
| |
| 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 14 matching lines...) Expand all Loading... | |
| 157 InvalidationSetMap m_classInvalidationSets; | 157 InvalidationSetMap m_classInvalidationSets; |
| 158 InvalidationSetMap m_attributeInvalidationSets; | 158 InvalidationSetMap m_attributeInvalidationSets; |
| 159 bool m_targetedStyleRecalcEnabled; | 159 bool m_targetedStyleRecalcEnabled; |
| 160 StyleInvalidator m_styleInvalidator; | 160 StyleInvalidator m_styleInvalidator; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 | 163 |
| 164 } // namespace WebCore | 164 } // namespace WebCore |
| 165 | 165 |
| 166 #endif // RuleFeature_h | 166 #endif // RuleFeature_h |
| OLD | NEW |