| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl
eRequest = request; } | 118 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl
eRequest = request; } |
| 119 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; } | 119 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; } |
| 120 | 120 |
| 121 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } | 121 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } |
| 122 bool hasAnyMatchingRules(RuleSet*); | 122 bool hasAnyMatchingRules(RuleSet*); |
| 123 | 123 |
| 124 MatchResult& matchedResult(); | 124 MatchResult& matchedResult(); |
| 125 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); | 125 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); |
| 126 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); | 126 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); |
| 127 | 127 |
| 128 void collectMatchingRules(const MatchRequest&, RuleRange&, SelectorChecker::
ContextFlags = SelectorChecker::DefaultBehavior, CascadeScope = ignoreCascadeSco
pe, CascadeOrder = ignoreCascadeOrder); | 128 void collectMatchingRules(const MatchRequest&, RuleRange&, CascadeScope = ig
noreCascadeScope, CascadeOrder = ignoreCascadeOrder); |
| 129 void sortAndTransferMatchedRules(); | 129 void sortAndTransferMatchedRules(); |
| 130 void clearMatchedRules(); | 130 void clearMatchedRules(); |
| 131 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); | 131 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 void collectRuleIfMatches(const RuleData&, SelectorChecker::ContextFlags, Ca
scadeScope, CascadeOrder, const MatchRequest&, RuleRange&); | 134 void collectRuleIfMatches(const RuleData&, SelectorChecker::ContextFlags, Ca
scadeScope, CascadeOrder, const MatchRequest&, RuleRange&); |
| 135 | 135 |
| 136 template<typename RuleDataListType> | 136 template<typename RuleDataListType> |
| 137 void collectMatchingRulesForList(const RuleDataListType* rules, SelectorChec
ker::ContextFlags contextFlags, CascadeScope cascadeScope, CascadeOrder cascadeO
rder, const MatchRequest& matchRequest, RuleRange& ruleRange) | 137 void collectMatchingRulesForList(const RuleDataListType* rules, SelectorChec
ker::ContextFlags contextFlags, CascadeScope cascadeScope, CascadeOrder cascadeO
rder, const MatchRequest& matchRequest, RuleRange& ruleRange) |
| 138 { | 138 { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 // Output. | 172 // Output. |
| 173 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 173 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 174 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 174 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 175 MatchResult m_result; | 175 MatchResult m_result; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace blink | 178 } // namespace blink |
| 179 | 179 |
| 180 #endif // ElementRuleCollector_h | 180 #endif // ElementRuleCollector_h |
| OLD | NEW |