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. 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_parentStyleSheet); | 61 visitor->trace(m_parentStyleSheet); |
| 62 } | 62 } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 // FIXME: Oilpan: RuleData is in the oilpan heap and this pointer | 65 RawPtrWillBeMember<const RuleData> m_ruleData; |
|
sof
2015/09/02 14:46:36
Needs to be additionally trace()d.
| |
| 66 // really should be traced. However, RuleData objects are | |
| 67 // allocated inside larger TerminatedArray objects and we cannot | |
| 68 // trace a raw rule data pointer at this point. | |
| 69 const RuleData* m_ruleData; | |
| 70 unsigned m_specificity; | 66 unsigned m_specificity; |
| 71 uint64_t m_position; | 67 uint64_t m_position; |
| 72 RawPtrWillBeMember<const CSSStyleSheet> m_parentStyleSheet; | 68 RawPtrWillBeMember<const CSSStyleSheet> m_parentStyleSheet; |
| 73 }; | 69 }; |
| 74 | 70 |
| 75 } // namespace blink | 71 } // namespace blink |
| 76 | 72 |
| 77 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedRule); | 73 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedRule); |
| 78 | 74 |
| 79 namespace blink { | 75 namespace blink { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 | 152 |
| 157 // Output. | 153 // Output. |
| 158 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 154 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 159 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 155 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 160 MatchResult m_result; | 156 MatchResult m_result; |
| 161 }; | 157 }; |
| 162 | 158 |
| 163 } // namespace blink | 159 } // namespace blink |
| 164 | 160 |
| 165 #endif // ElementRuleCollector_h | 161 #endif // ElementRuleCollector_h |
| OLD | NEW |