| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // causes C2248 error : 'blink::StyleRuleBase::~StyleRuleBase' : cannot | 78 // causes C2248 error : 'blink::StyleRuleBase::~StyleRuleBase' : cannot |
| 79 // access protected member declared in class 'blink::StyleRuleBase' when | 79 // access protected member declared in class 'blink::StyleRuleBase' when |
| 80 // compiling 'source\wtf\refcounted.h' by using msvc. | 80 // compiling 'source\wtf\refcounted.h' by using msvc. |
| 81 ~StyleRuleBase() { } | 81 ~StyleRuleBase() { } |
| 82 | 82 |
| 83 protected: | 83 protected: |
| 84 StyleRuleBase(RuleType type) : m_type(type) { } | 84 StyleRuleBase(RuleType type) : m_type(type) { } |
| 85 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { } | 85 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { } |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 void destroy(); | |
| 89 | |
| 90 CSSRule* createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule)
const; | 88 CSSRule* createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule)
const; |
| 91 | 89 |
| 92 unsigned m_type : 5; | 90 unsigned m_type : 5; |
| 93 }; | 91 }; |
| 94 | 92 |
| 95 class CORE_EXPORT StyleRule : public StyleRuleBase { | 93 class CORE_EXPORT StyleRule : public StyleRuleBase { |
| 96 public: | 94 public: |
| 97 // Adopts the selector list | 95 // Adopts the selector list |
| 98 static StyleRule* create(CSSSelectorList selectorList, StylePropertySet* pro
perties) | 96 static StyleRule* create(CSSSelectorList selectorList, StylePropertySet* pro
perties) |
| 99 { | 97 { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); | 270 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); |
| 273 DEFINE_STYLE_RULE_TYPE_CASTS(Page); | 271 DEFINE_STYLE_RULE_TYPE_CASTS(Page); |
| 274 DEFINE_STYLE_RULE_TYPE_CASTS(Media); | 272 DEFINE_STYLE_RULE_TYPE_CASTS(Media); |
| 275 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); | 273 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); |
| 276 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); | 274 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); |
| 277 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); | 275 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); |
| 278 | 276 |
| 279 } // namespace blink | 277 } // namespace blink |
| 280 | 278 |
| 281 #endif // StyleRule_h | 279 #endif // StyleRule_h |
| OLD | NEW |