| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } | 121 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } |
| 122 void setScopeContainsLastMatchedElement(bool scopeContainsLastMatchedElement
) { m_scopeContainsLastMatchedElement = scopeContainsLastMatchedElement; } | 122 void setScopeContainsLastMatchedElement(bool scopeContainsLastMatchedElement
) { m_scopeContainsLastMatchedElement = scopeContainsLastMatchedElement; } |
| 123 bool scopeContainsLastMatchedElement() const { return m_scopeContainsLastMat
chedElement; } | 123 bool scopeContainsLastMatchedElement() const { return m_scopeContainsLastMat
chedElement; } |
| 124 bool hasAnyMatchingRules(RuleSet*); | 124 bool hasAnyMatchingRules(RuleSet*); |
| 125 | 125 |
| 126 MatchResult& matchedResult(); | 126 MatchResult& matchedResult(); |
| 127 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); | 127 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); |
| 128 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); | 128 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); |
| 129 | 129 |
| 130 void collectMatchingRules(const MatchRequest&, RuleRange&, CascadeScope = ig
noreCascadeScope, CascadeOrder = ignoreCascadeOrder, bool matchingTreeBoundaryRu
les = false); | 130 void collectMatchingRules(const MatchRequest&, RuleRange&, CascadeScope = ig
noreCascadeScope, CascadeOrder = ignoreCascadeOrder, bool matchingTreeBoundaryRu
les = false); |
| 131 void collectMatchingShadowHostRules(const MatchRequest&, RuleRange&, Cascade
Scope = ignoreCascadeScope, CascadeOrder = ignoreCascadeOrder, bool matchingTree
BoundaryRules = false); |
| 131 void sortAndTransferMatchedRules(); | 132 void sortAndTransferMatchedRules(); |
| 132 void clearMatchedRules(); | 133 void clearMatchedRules(); |
| 133 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); | 134 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); |
| 134 | 135 |
| 135 private: | 136 private: |
| 136 void collectRuleIfMatches(const RuleData&, CascadeScope, CascadeOrder, const
MatchRequest&, RuleRange&); | 137 void collectRuleIfMatches(const RuleData&, CascadeScope, CascadeOrder, const
MatchRequest&, RuleRange&); |
| 137 | 138 |
| 138 template<typename RuleDataListType> | 139 template<typename RuleDataListType> |
| 139 void collectMatchingRulesForList(const RuleDataListType* rules, CascadeScope
cascadeScope, CascadeOrder cascadeOrder, const MatchRequest& matchRequest, Rule
Range& ruleRange) | 140 void collectMatchingRulesForList(const RuleDataListType* rules, CascadeScope
cascadeScope, CascadeOrder cascadeOrder, const MatchRequest& matchRequest, Rule
Range& ruleRange) |
| 140 { | 141 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 175 |
| 175 // Output. | 176 // Output. |
| 176 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 177 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 177 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 178 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 178 MatchResult m_result; | 179 MatchResult m_result; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace blink | 182 } // namespace blink |
| 182 | 183 |
| 183 #endif // ElementRuleCollector_h | 184 #endif // ElementRuleCollector_h |
| OLD | NEW |