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 const HeapVector<MatchedRule, 32>& matchedRulesList() const { | |
|
pfeldman
2016/11/03 21:23:30
I don't think you should expose otherwise encapsul
| |
| 147 return m_matchedRules; | |
| 148 } | |
| 149 | |
| 146 private: | 150 private: |
| 147 template <typename RuleDataListType> | 151 template <typename RuleDataListType> |
| 148 void collectMatchingRulesForList(const RuleDataListType*, | 152 void collectMatchingRulesForList(const RuleDataListType*, |
| 149 CascadeOrder, | 153 CascadeOrder, |
| 150 const MatchRequest&); | 154 const MatchRequest&); |
| 151 | 155 |
| 152 void didMatchRule(const RuleData&, | 156 void didMatchRule(const RuleData&, |
| 153 const SelectorChecker::MatchResult&, | 157 const SelectorChecker::MatchResult&, |
| 154 CascadeOrder, | 158 CascadeOrder, |
| 155 const MatchRequest&); | 159 const MatchRequest&); |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 179 | 183 |
| 180 // Output. | 184 // Output. |
| 181 Member<StaticCSSRuleList> m_cssRuleList; | 185 Member<StaticCSSRuleList> m_cssRuleList; |
| 182 Member<StyleRuleList> m_styleRuleList; | 186 Member<StyleRuleList> m_styleRuleList; |
| 183 MatchResult m_result; | 187 MatchResult m_result; |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 } // namespace blink | 190 } // namespace blink |
| 187 | 191 |
| 188 #endif // ElementRuleCollector_h | 192 #endif // ElementRuleCollector_h |
| OLD | NEW |