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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 const MatchResult& matchedResult() const; | 121 const MatchResult& matchedResult() const; |
122 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); | 122 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); |
123 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); | 123 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); |
124 | 124 |
125 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO
rder, bool matchingTreeBoundaryRules = false); | 125 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO
rder, bool matchingTreeBoundaryRules = false); |
126 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno
reCascadeOrder, bool matchingTreeBoundaryRules = false); | 126 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno
reCascadeOrder, bool matchingTreeBoundaryRules = false); |
127 void sortAndTransferMatchedRules(); | 127 void sortAndTransferMatchedRules(); |
128 void clearMatchedRules(); | 128 void clearMatchedRules(); |
129 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); | 129 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); |
130 void finishAddingUARules() { m_result.finishAddingUARules(); } | |
131 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule
sForTreeScope(); } | |
132 | 130 |
133 private: | 131 private: |
134 template<typename RuleDataListType> | 132 template<typename RuleDataListType> |
135 void collectMatchingRulesForList(const RuleDataListType*, CascadeOrder, cons
t MatchRequest&); | 133 void collectMatchingRulesForList(const RuleDataListType*, CascadeOrder, cons
t MatchRequest&); |
136 | 134 |
137 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, Casc
adeOrder, const MatchRequest&); | 135 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, Casc
adeOrder, const MatchRequest&); |
138 | 136 |
139 template<class CSSRuleCollection> | 137 template<class CSSRuleCollection> |
140 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); | 138 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); |
141 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); | 139 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); |
(...skipping 19 matching lines...) Expand all Loading... |
161 | 159 |
162 // Output. | 160 // Output. |
163 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 161 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
164 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 162 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
165 MatchResult m_result; | 163 MatchResult m_result; |
166 }; | 164 }; |
167 | 165 |
168 } // namespace blink | 166 } // namespace blink |
169 | 167 |
170 #endif // ElementRuleCollector_h | 168 #endif // ElementRuleCollector_h |
OLD | NEW |