OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 ~StyleRuleBase() { } | 89 ~StyleRuleBase() { } |
90 | 90 |
91 private: | 91 private: |
92 void destroy(); | 92 void destroy(); |
93 | 93 |
94 PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentShee
t, CSSRule* parentRule) const; | 94 PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentShee
t, CSSRule* parentRule) const; |
95 | 95 |
96 unsigned m_type : 5; | 96 unsigned m_type : 5; |
97 }; | 97 }; |
98 | 98 |
99 WILL_BE_EAGERLY_TRACED(StyleRuleBase); | |
100 | |
101 class StyleRule : public StyleRuleBase { | 99 class StyleRule : public StyleRuleBase { |
102 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 100 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
103 public: | 101 public: |
104 static PassRefPtrWillBeRawPtr<StyleRule> create() { return adoptRefWillBeNoo
p(new StyleRule()); } | 102 static PassRefPtrWillBeRawPtr<StyleRule> create() { return adoptRefWillBeNoo
p(new StyleRule()); } |
105 | 103 |
106 ~StyleRule(); | 104 ~StyleRule(); |
107 | 105 |
108 const CSSSelectorList& selectorList() const { return m_selectorList; } | 106 const CSSSelectorList& selectorList() const { return m_selectorList; } |
109 const StylePropertySet& properties() const { return *m_properties; } | 107 const StylePropertySet& properties() const { return *m_properties; } |
110 MutableStylePropertySet& mutableProperties(); | 108 MutableStylePropertySet& mutableProperties(); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); | 285 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); |
288 DEFINE_STYLE_RULE_TYPE_CASTS(Page); | 286 DEFINE_STYLE_RULE_TYPE_CASTS(Page); |
289 DEFINE_STYLE_RULE_TYPE_CASTS(Media); | 287 DEFINE_STYLE_RULE_TYPE_CASTS(Media); |
290 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); | 288 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); |
291 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); | 289 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); |
292 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); | 290 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); |
293 | 291 |
294 } // namespace blink | 292 } // namespace blink |
295 | 293 |
296 #endif // StyleRule_h | 294 #endif // StyleRule_h |
OLD | NEW |