| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); | 117 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); |
| 118 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); | 118 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); |
| 119 | 119 |
| 120 void collectMatchingRules(const MatchRequest&, bool matchingTreeBoundaryRule
s = false); | 120 void collectMatchingRules(const MatchRequest&, bool matchingTreeBoundaryRule
s = false); |
| 121 void collectMatchingShadowHostRules(const MatchRequest&, bool matchingTreeBo
undaryRules = false); | 121 void collectMatchingShadowHostRules(const MatchRequest&, bool matchingTreeBo
undaryRules = false); |
| 122 void sortAndTransferMatchedRules(); | 122 void sortAndTransferMatchedRules(); |
| 123 void clearMatchedRules(); | 123 void clearMatchedRules(); |
| 124 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); | 124 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t
rue); |
| 125 void finishAddingUARules() { m_result.finishAddingUARules(); } | 125 void finishAddingUARules() { m_result.finishAddingUARules(); } |
| 126 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule
sForTreeScope(); } | 126 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule
sForTreeScope(); } |
| 127 bool isCollectingForPseudoElement() const { return m_pseudoStyleRequest.pseu
doId != NOPSEUDO; } | |
| 128 | 127 |
| 129 private: | 128 private: |
| 130 template<typename RuleDataListType> | 129 template<typename RuleDataListType> |
| 131 void collectMatchingRulesForList(const RuleDataListType*, const MatchRequest
&); | 130 void collectMatchingRulesForList(const RuleDataListType*, const MatchRequest
&); |
| 132 | 131 |
| 133 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, cons
t MatchRequest&); | 132 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, cons
t MatchRequest&); |
| 134 | 133 |
| 135 template<class CSSRuleCollection> | 134 template<class CSSRuleCollection> |
| 136 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); | 135 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); |
| 137 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); | 136 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 157 | 156 |
| 158 // Output. | 157 // Output. |
| 159 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 158 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 160 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 159 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 161 MatchResult m_result; | 160 MatchResult m_result; |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } // namespace blink | 163 } // namespace blink |
| 165 | 164 |
| 166 #endif // ElementRuleCollector_h | 165 #endif // ElementRuleCollector_h |
| OLD | NEW |