| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool treeBoundaryCrossing; | 158 bool treeBoundaryCrossing; |
| 159 bool adjacent; | 159 bool adjacent; |
| 160 bool insertionPointCrossing; | 160 bool insertionPointCrossing; |
| 161 bool forceSubtree; | 161 bool forceSubtree; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 static bool extractInvalidationSetFeature(const CSSSelector&, InvalidationSe
tFeatures&); | 164 static bool extractInvalidationSetFeature(const CSSSelector&, InvalidationSe
tFeatures&); |
| 165 | 165 |
| 166 enum UseFeaturesType { UseFeatures, ForceSubtree }; | 166 enum UseFeaturesType { UseFeatures, ForceSubtree }; |
| 167 | 167 |
| 168 std::pair<const CSSSelector*, UseFeaturesType> extractInvalidationSetFeature
s(const CSSSelector&, InvalidationSetFeatures&, bool negated); | 168 enum PositionType { Subject, Ancestor }; |
| 169 std::pair<const CSSSelector*, UseFeaturesType> extractInvalidationSetFeature
s(const CSSSelector&, InvalidationSetFeatures&, PositionType, CSSSelector::Pseud
oType = CSSSelector::PseudoUnknown); |
| 169 | 170 |
| 170 void addFeaturesToInvalidationSet(InvalidationSet&, const InvalidationSetFea
tures&); | 171 void addFeaturesToInvalidationSet(InvalidationSet&, const InvalidationSetFea
tures&); |
| 171 void addFeaturesToInvalidationSets(const CSSSelector*, InvalidationSetFeatur
es* siblingFeatures, InvalidationSetFeatures& descendantFeatures); | 172 void addFeaturesToInvalidationSets(const CSSSelector*, InvalidationSetFeatur
es* siblingFeatures, InvalidationSetFeatures& descendantFeatures); |
| 172 | 173 |
| 173 void addClassToInvalidationSet(const AtomicString& className, Element&); | 174 void addClassToInvalidationSet(const AtomicString& className, Element&); |
| 174 | 175 |
| 175 FeatureMetadata m_metadata; | 176 FeatureMetadata m_metadata; |
| 176 InvalidationSetMap m_classInvalidationSets; | 177 InvalidationSetMap m_classInvalidationSets; |
| 177 InvalidationSetMap m_attributeInvalidationSets; | 178 InvalidationSetMap m_attributeInvalidationSets; |
| 178 InvalidationSetMap m_idInvalidationSets; | 179 InvalidationSetMap m_idInvalidationSets; |
| 179 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets; | 180 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets; |
| 180 | 181 |
| 181 friend class RuleFeatureSetTest; | 182 friend class RuleFeatureSetTest; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace blink | 185 } // namespace blink |
| 185 | 186 |
| 186 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleFeature); | 187 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleFeature); |
| 187 | 188 |
| 188 #endif // RuleFeature_h | 189 #endif // RuleFeature_h |
| OLD | NEW |