Chromium Code Reviews| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { } | 94 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { } |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 void destroy(); | 97 void destroy(); |
| 98 | 98 |
| 99 PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentShee t, CSSRule* parentRule) const; | 99 PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentShee t, CSSRule* parentRule) const; |
| 100 | 100 |
| 101 unsigned m_type : 5; | 101 unsigned m_type : 5; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 class StyleRule : public StyleRuleBase { | 104 class CORE_EXPORT StyleRule : public StyleRuleBase { |
|
esprehn
2015/09/10 08:54:53
Why do you need to export StyleRule from core? thi
rune
2015/09/10 13:54:50
Because RuleFeatureSetTest.cpp needs access to Sty
| |
| 105 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleRule); | 105 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleRule); |
| 106 public: | 106 public: |
| 107 // Adopts the selector list | 107 // Adopts the selector list |
| 108 static PassRefPtrWillBeRawPtr<StyleRule> create(CSSSelectorList& selectorLis t, PassRefPtrWillBeRawPtr<StylePropertySet> properties) | 108 static PassRefPtrWillBeRawPtr<StyleRule> create(CSSSelectorList& selectorLis t, PassRefPtrWillBeRawPtr<StylePropertySet> properties) |
| 109 { | 109 { |
| 110 return adoptRefWillBeNoop(new StyleRule(selectorList, properties)); | 110 return adoptRefWillBeNoop(new StyleRule(selectorList, properties)); |
| 111 } | 111 } |
| 112 | 112 |
| 113 ~StyleRule(); | 113 ~StyleRule(); |
| 114 | 114 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); | 283 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); |
| 284 DEFINE_STYLE_RULE_TYPE_CASTS(Page); | 284 DEFINE_STYLE_RULE_TYPE_CASTS(Page); |
| 285 DEFINE_STYLE_RULE_TYPE_CASTS(Media); | 285 DEFINE_STYLE_RULE_TYPE_CASTS(Media); |
| 286 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); | 286 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); |
| 287 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); | 287 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); |
| 288 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); | 288 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); |
| 289 | 289 |
| 290 } // namespace blink | 290 } // namespace blink |
| 291 | 291 |
| 292 #endif // StyleRule_h | 292 #endif // StyleRule_h |
| OLD | NEW |