| 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, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2002, 2006, 2012 Apple Computer, Inc. |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 virtual unsigned length() const = 0; | 48 virtual unsigned length() const = 0; |
| 49 virtual CSSRule* item(unsigned index) const = 0; | 49 virtual CSSRule* item(unsigned index) const = 0; |
| 50 | 50 |
| 51 virtual CSSStyleSheet* styleSheet() const = 0; | 51 virtual CSSStyleSheet* styleSheet() const = 0; |
| 52 | 52 |
| 53 virtual void trace(Visitor*) { } | 53 virtual void trace(Visitor*) { } |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 CSSRuleList(); | 56 CSSRuleList() { } |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class StaticCSSRuleList FINAL : public CSSRuleList { | 59 class StaticCSSRuleList FINAL : public CSSRuleList { |
| 60 public: | 60 public: |
| 61 static PassRefPtrWillBeRawPtr<StaticCSSRuleList> create() | 61 static PassRefPtrWillBeRawPtr<StaticCSSRuleList> create() |
| 62 { | 62 { |
| 63 return adoptRefWillBeNoop(new StaticCSSRuleList()); | 63 return adoptRefWillBeNoop(new StaticCSSRuleList()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 #if !ENABLE(OILPAN) | 66 #if !ENABLE(OILPAN) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual unsigned length() const OVERRIDE { return m_rule->length(); } | 112 virtual unsigned length() const OVERRIDE { return m_rule->length(); } |
| 113 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i
ndex); } | 113 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i
ndex); } |
| 114 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt
yleSheet(); } | 114 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt
yleSheet(); } |
| 115 | 115 |
| 116 RawPtrWillBeMember<Rule> m_rule; | 116 RawPtrWillBeMember<Rule> m_rule; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // CSSRuleList_h | 121 #endif // CSSRuleList_h |
| OLD | NEW |