| 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, 2007, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual ~CSSRule() {} | 42 virtual ~CSSRule() {} |
| 43 | 43 |
| 44 enum Type { | 44 enum Type { |
| 45 kStyleRule = 1, | 45 kStyleRule = 1, |
| 46 kCharsetRule = 2, | 46 kCharsetRule = 2, |
| 47 kImportRule = 3, | 47 kImportRule = 3, |
| 48 kMediaRule = 4, | 48 kMediaRule = 4, |
| 49 kFontFaceRule = 5, | 49 kFontFaceRule = 5, |
| 50 kPageRule = 6, | 50 kPageRule = 6, |
| 51 kKeyframesRule = 7, | 51 kKeyframesRule = 7, |
| 52 kWebkitKeyframesRule = kKeyframesRule, | |
| 53 kKeyframeRule = 8, | 52 kKeyframeRule = 8, |
| 54 kWebkitKeyframeRule = kKeyframeRule, | |
| 55 kNamespaceRule = 10, | 53 kNamespaceRule = 10, |
| 56 kSupportsRule = 12, | 54 kSupportsRule = 12, |
| 57 kViewportRule = 15, | 55 kViewportRule = 15, |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 virtual Type type() const = 0; | 58 virtual Type type() const = 0; |
| 61 virtual String cssText() const = 0; | 59 virtual String cssText() const = 0; |
| 62 virtual void Reattach(StyleRuleBase*) = 0; | 60 virtual void Reattach(StyleRuleBase*) = 0; |
| 63 | 61 |
| 64 virtual CSSRuleList* cssRules() const { return 0; } | 62 virtual CSSRuleList* cssRules() const { return 0; } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 }; | 104 }; |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ | 107 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ |
| 110 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, \ | 108 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, \ |
| 111 rule.type() == CSSRule::TYPE_NAME) | 109 rule.type() == CSSRule::TYPE_NAME) |
| 112 | 110 |
| 113 } // namespace blink | 111 } // namespace blink |
| 114 | 112 |
| 115 #endif // CSSRule_h | 113 #endif // CSSRule_h |
| OLD | NEW |