| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 Page, | 47 Page, |
| 48 Keyframes, | 48 Keyframes, |
| 49 Keyframe, // Not used. These are internally non-rule StyleKeyframe objec
ts. | 49 Keyframe, // Not used. These are internally non-rule StyleKeyframe objec
ts. |
| 50 Supports = 12, | 50 Supports = 12, |
| 51 Viewport = 15, | 51 Viewport = 15, |
| 52 Filter = 17 | 52 Filter = 17 |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 Type type() const { return static_cast<Type>(m_type); } | 55 Type type() const { return static_cast<Type>(m_type); } |
| 56 | 56 |
| 57 bool isCharsetRule() const { return type() == Charset; } | |
| 58 bool isFontFaceRule() const { return type() == FontFace; } | 57 bool isFontFaceRule() const { return type() == FontFace; } |
| 59 bool isKeyframesRule() const { return type() == Keyframes; } | 58 bool isKeyframesRule() const { return type() == Keyframes; } |
| 60 bool isMediaRule() const { return type() == Media; } | 59 bool isMediaRule() const { return type() == Media; } |
| 61 bool isPageRule() const { return type() == Page; } | 60 bool isPageRule() const { return type() == Page; } |
| 62 bool isStyleRule() const { return type() == Style; } | 61 bool isStyleRule() const { return type() == Style; } |
| 63 bool isSupportsRule() const { return type() == Supports; } | 62 bool isSupportsRule() const { return type() == Supports; } |
| 64 bool isViewportRule() const { return type() == Viewport; } | 63 bool isViewportRule() const { return type() == Viewport; } |
| 65 bool isImportRule() const { return type() == Import; } | 64 bool isImportRule() const { return type() == Import; } |
| 66 bool isFilterRule() const { return type() == Filter; } | 65 bool isFilterRule() const { return type() == Filter; } |
| 67 | 66 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); | 285 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); |
| 287 DEFINE_STYLE_RULE_TYPE_CASTS(Page); | 286 DEFINE_STYLE_RULE_TYPE_CASTS(Page); |
| 288 DEFINE_STYLE_RULE_TYPE_CASTS(Media); | 287 DEFINE_STYLE_RULE_TYPE_CASTS(Media); |
| 289 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); | 288 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); |
| 290 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); | 289 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); |
| 291 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); | 290 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); |
| 292 | 291 |
| 293 } // namespace blink | 292 } // namespace blink |
| 294 | 293 |
| 295 #endif // StyleRule_h | 294 #endif // StyleRule_h |
| OLD | NEW |