| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 InvalidationSetFeatures() : customPseudoElement(false) { } | 146 InvalidationSetFeatures() : customPseudoElement(false) { } |
| 147 Vector<AtomicString> classes; | 147 Vector<AtomicString> classes; |
| 148 Vector<AtomicString> attributes; | 148 Vector<AtomicString> attributes; |
| 149 AtomicString id; | 149 AtomicString id; |
| 150 AtomicString tagName; | 150 AtomicString tagName; |
| 151 bool customPseudoElement; | 151 bool customPseudoElement; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSe
tFeatures&); | 154 static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSe
tFeatures&); |
| 155 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Invali
dationSetFeatures&); | 155 const CSSSelector* extractInvalidationSetFeatures(const CSSSelector&, Invali
dationSetFeatures&); |
| 156 void addFeaturesToInvalidationSets(const CSSSelector&, const InvalidationSet
Features&); | 156 void addFeaturesToInvalidationSets(const CSSSelector&, const InvalidationSet
Features&, bool wholeSubtree); |
| 157 | 157 |
| 158 void addClassToInvalidationSet(const AtomicString& className, Element&); | 158 void addClassToInvalidationSet(const AtomicString& className, Element&); |
| 159 | 159 |
| 160 FeatureMetadata m_metadata; | 160 FeatureMetadata m_metadata; |
| 161 InvalidationSetMap m_classInvalidationSets; | 161 InvalidationSetMap m_classInvalidationSets; |
| 162 InvalidationSetMap m_attributeInvalidationSets; | 162 InvalidationSetMap m_attributeInvalidationSets; |
| 163 InvalidationSetMap m_idInvalidationSets; | 163 InvalidationSetMap m_idInvalidationSets; |
| 164 bool m_targetedStyleRecalcEnabled; | 164 bool m_targetedStyleRecalcEnabled; |
| 165 StyleInvalidator m_styleInvalidator; | 165 StyleInvalidator m_styleInvalidator; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 | 168 |
| 169 } // namespace WebCore | 169 } // namespace WebCore |
| 170 | 170 |
| 171 #endif // RuleFeature_h | 171 #endif // RuleFeature_h |
| OLD | NEW |