Chromium Code Reviews| 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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 void finishAddingUARules() { m_result.finishAddingUARules(); } | 136 void finishAddingUARules() { m_result.finishAddingUARules(); } |
| 137 void finishAddingAuthorRulesForTreeScope() { | 137 void finishAddingAuthorRulesForTreeScope() { |
| 138 m_result.finishAddingAuthorRulesForTreeScope(); | 138 m_result.finishAddingAuthorRulesForTreeScope(); |
| 139 } | 139 } |
| 140 void setIncludeEmptyRules(bool include) { m_includeEmptyRules = include; } | 140 void setIncludeEmptyRules(bool include) { m_includeEmptyRules = include; } |
| 141 bool includeEmptyRules() const { return m_includeEmptyRules; } | 141 bool includeEmptyRules() const { return m_includeEmptyRules; } |
| 142 bool isCollectingForPseudoElement() const { | 142 bool isCollectingForPseudoElement() const { |
| 143 return m_pseudoStyleRequest.pseudoId != PseudoIdNone; | 143 return m_pseudoStyleRequest.pseudoId != PseudoIdNone; |
| 144 } | 144 } |
| 145 | 145 |
| 146 HeapVector<MatchedRule, 32>& matchedRulesList() { return m_matchedRules; } | |
|
caseq
2016/10/27 20:59:54
const?
valih
2016/10/27 21:41:16
Done.
| |
| 147 | |
| 146 private: | 148 private: |
| 147 template <typename RuleDataListType> | 149 template <typename RuleDataListType> |
| 148 void collectMatchingRulesForList(const RuleDataListType*, | 150 void collectMatchingRulesForList(const RuleDataListType*, |
| 149 CascadeOrder, | 151 CascadeOrder, |
| 150 const MatchRequest&); | 152 const MatchRequest&); |
| 151 | 153 |
| 152 void didMatchRule(const RuleData&, | 154 void didMatchRule(const RuleData&, |
| 153 const SelectorChecker::MatchResult&, | 155 const SelectorChecker::MatchResult&, |
| 154 CascadeOrder, | 156 CascadeOrder, |
| 155 const MatchRequest&); | 157 const MatchRequest&); |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 179 | 181 |
| 180 // Output. | 182 // Output. |
| 181 Member<StaticCSSRuleList> m_cssRuleList; | 183 Member<StaticCSSRuleList> m_cssRuleList; |
| 182 Member<StyleRuleList> m_styleRuleList; | 184 Member<StyleRuleList> m_styleRuleList; |
| 183 MatchResult m_result; | 185 MatchResult m_result; |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace blink | 188 } // namespace blink |
| 187 | 189 |
| 188 #endif // ElementRuleCollector_h | 190 #endif // ElementRuleCollector_h |
| OLD | NEW |