| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 DECLARE_TRACE(); | 97 DECLARE_TRACE(); |
| 98 | 98 |
| 99 WillBeHeapVector<RuleFeature> siblingRules; | 99 WillBeHeapVector<RuleFeature> siblingRules; |
| 100 WillBeHeapVector<RuleFeature> uncommonAttributeRules; | 100 WillBeHeapVector<RuleFeature> uncommonAttributeRules; |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); | 103 DescendantInvalidationSet* invalidationSetForSelector(const CSSSelector&); |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 typedef WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<DescendantInvalid
ationSet> > InvalidationSetMap; | 106 typedef WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<DescendantInvalid
ationSet>> InvalidationSetMap; |
| 107 typedef WillBeHeapHashMap<CSSSelector::PseudoType, RefPtrWillBeMember<Descen
dantInvalidationSet>, WTF::IntHash<unsigned>, WTF::UnsignedWithZeroKeyHashTraits
<unsigned> > PseudoTypeInvalidationSetMap; | 107 typedef WillBeHeapHashMap<CSSSelector::PseudoType, RefPtrWillBeMember<Descen
dantInvalidationSet>, WTF::IntHash<unsigned>, WTF::UnsignedWithZeroKeyHashTraits
<unsigned>> PseudoTypeInvalidationSetMap; |
| 108 | 108 |
| 109 struct FeatureMetadata { | 109 struct FeatureMetadata { |
| 110 FeatureMetadata() | 110 FeatureMetadata() |
| 111 : usesFirstLineRules(false) | 111 : usesFirstLineRules(false) |
| 112 , usesWindowInactiveSelector(false) | 112 , usesWindowInactiveSelector(false) |
| 113 , foundSiblingSelector(false) | 113 , foundSiblingSelector(false) |
| 114 , maxDirectAdjacentSelectors(0) | 114 , maxDirectAdjacentSelectors(0) |
| 115 { } | 115 { } |
| 116 void add(const FeatureMetadata& other); | 116 void add(const FeatureMetadata& other); |
| 117 void clear(); | 117 void clear(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 InvalidationSetMap m_attributeInvalidationSets; | 172 InvalidationSetMap m_attributeInvalidationSets; |
| 173 InvalidationSetMap m_idInvalidationSets; | 173 InvalidationSetMap m_idInvalidationSets; |
| 174 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets; | 174 PseudoTypeInvalidationSetMap m_pseudoInvalidationSets; |
| 175 StyleInvalidator m_styleInvalidator; | 175 StyleInvalidator m_styleInvalidator; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 | 178 |
| 179 } // namespace blink | 179 } // namespace blink |
| 180 | 180 |
| 181 #endif // RuleFeature_h | 181 #endif // RuleFeature_h |
| OLD | NEW |