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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 void setMode(SelectorChecker::Mode mode) { m_mode = mode; } | 112 void setMode(SelectorChecker::Mode mode) { m_mode = mode; } |
113 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl
eRequest = request; } | 113 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl
eRequest = request; } |
114 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; } | 114 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; } |
115 | 115 |
116 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } | 116 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching
UARules; } |
117 void setScopeContainsLastMatchedElement(bool scopeContainsLastMatchedElement
) { m_scopeContainsLastMatchedElement = scopeContainsLastMatchedElement; } | 117 void setScopeContainsLastMatchedElement(bool scopeContainsLastMatchedElement
) { m_scopeContainsLastMatchedElement = scopeContainsLastMatchedElement; } |
118 bool scopeContainsLastMatchedElement() const { return m_scopeContainsLastMat
chedElement; } | 118 bool scopeContainsLastMatchedElement() const { return m_scopeContainsLastMat
chedElement; } |
119 bool hasAnyMatchingRules(RuleSet*); | 119 bool hasAnyMatchingRules(RuleSet*); |
120 | 120 |
121 const MatchResult& matchedResult(); | 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 | 130 |
131 private: | 131 private: |
(...skipping 27 matching lines...) Expand all Loading... |
159 | 159 |
160 // Output. | 160 // Output. |
161 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 161 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
162 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 162 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
163 MatchResult m_result; | 163 MatchResult m_result; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace blink | 166 } // namespace blink |
167 | 167 |
168 #endif // ElementRuleCollector_h | 168 #endif // ElementRuleCollector_h |
OLD | NEW |