| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 static const unsigned BitsForPositionInRuleData = 18; | 51 static const unsigned BitsForPositionInRuleData = 18; |
| 52 m_position = ((uint64_t)styleSheetIndex << BitsForPositionInRuleData) +
m_ruleData->position(); | 52 m_position = ((uint64_t)styleSheetIndex << BitsForPositionInRuleData) +
m_ruleData->position(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 const RuleData* ruleData() const { return m_ruleData; } | 55 const RuleData* ruleData() const { return m_ruleData; } |
| 56 uint64_t position() const { return m_position; } | 56 uint64_t position() const { return m_position; } |
| 57 unsigned specificity() const { return ruleData()->specificity() + m_specific
ity; } | 57 unsigned specificity() const { return ruleData()->specificity() + m_specific
ity; } |
| 58 const CSSStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; } | 58 const CSSStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; } |
| 59 DEFINE_INLINE_TRACE() | 59 DEFINE_INLINE_TRACE() |
| 60 { | 60 { |
| 61 visitor->trace(m_ruleData); | |
| 62 visitor->trace(m_parentStyleSheet); | 61 visitor->trace(m_parentStyleSheet); |
| 63 } | 62 } |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 RawPtrWillBeMember<const RuleData> m_ruleData; | 65 RawPtrWillBeMember<const RuleData> m_ruleData; |
| 67 unsigned m_specificity; | 66 unsigned m_specificity; |
| 68 uint64_t m_position; | 67 uint64_t m_position; |
| 69 RawPtrWillBeMember<const CSSStyleSheet> m_parentStyleSheet; | 68 RawPtrWillBeMember<const CSSStyleSheet> m_parentStyleSheet; |
| 70 }; | 69 }; |
| 71 | 70 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 153 |
| 155 // Output. | 154 // Output. |
| 156 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 155 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 157 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 156 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 158 MatchResult m_result; | 157 MatchResult m_result; |
| 159 }; | 158 }; |
| 160 | 159 |
| 161 } // namespace blink | 160 } // namespace blink |
| 162 | 161 |
| 163 #endif // ElementRuleCollector_h | 162 #endif // ElementRuleCollector_h |
| OLD | NEW |