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, 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 16 matching lines...) Expand all Loading... | |
| 27 #include "heap/Visitor.h" | 27 #include "heap/Visitor.h" |
| 28 #include "wtf/RefCounted.h" | 28 #include "wtf/RefCounted.h" |
| 29 #include "wtf/text/WTFString.h" | 29 #include "wtf/text/WTFString.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class CSSParserContext; | 33 class CSSParserContext; |
| 34 class CSSStyleSheet; | 34 class CSSStyleSheet; |
| 35 class StyleRuleBase; | 35 class StyleRuleBase; |
| 36 | 36 |
| 37 // FIXME: oilpan: CSSRuleList redirects increments and decrements of its | 37 // FIXME: oilpan: CSSRuleList redirects increments and decrements of its |
|
Mads Ager (chromium)
2014/03/10 12:32:56
Remove deprecated comment.
Erik Corry
2014/03/12 12:31:27
Done.
| |
| 38 // reference counts to its CSSRule. That means this has to be | 38 // reference counts to its CSSRule. That means this has to be |
| 39 // RefCountedGarbageCollected instead of just GarbageCollected for now. | 39 // RefCountedGarbageCollected instead of just GarbageCollected for now. |
| 40 class CSSRule : public RefCountedWillBeRefCountedGarbageCollected<CSSRule> { | 40 class CSSRule : public RefCountedWillBeGarbageCollectedFinalized<CSSRule> { |
| 41 public: | 41 public: |
| 42 virtual ~CSSRule() { } | 42 virtual ~CSSRule() { } |
| 43 | 43 |
| 44 enum Type { | 44 enum Type { |
| 45 UNKNOWN_RULE, | 45 UNKNOWN_RULE, |
| 46 STYLE_RULE, | 46 STYLE_RULE, |
| 47 CHARSET_RULE, | 47 CHARSET_RULE, |
| 48 IMPORT_RULE, | 48 IMPORT_RULE, |
| 49 MEDIA_RULE, | 49 MEDIA_RULE, |
| 50 FONT_FACE_RULE, | 50 FONT_FACE_RULE, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 CSSStyleSheet* m_parentStyleSheet; | 114 CSSStyleSheet* m_parentStyleSheet; |
| 115 }; | 115 }; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ | 118 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ |
| 119 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) | 119 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) |
| 120 | 120 |
| 121 } // namespace WebCore | 121 } // namespace WebCore |
| 122 | 122 |
| 123 #endif // CSSRule_h | 123 #endif // CSSRule_h |
| OLD | NEW |