| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef CSSRuleList_h | 22 #ifndef CSSRuleList_h |
| 23 #define CSSRuleList_h | 23 #define CSSRuleList_h |
| 24 | 24 |
| 25 #include "bindings/core/v8/ScriptWrappable.h" | 25 #include "bindings/core/v8/ScriptWrappable.h" |
| 26 #include "platform/heap/Handle.h" | 26 #include "wtf/PassOwnPtr.h" |
| 27 #include "wtf/PassRefPtr.h" | 27 #include "wtf/PassRefPtr.h" |
| 28 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
| 29 #include "wtf/Vector.h" | 29 #include "wtf/Vector.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class CSSRule; | 33 class CSSRule; |
| 34 class CSSStyleSheet; | 34 class CSSStyleSheet; |
| 35 | 35 |
| 36 class CSSRuleList : public DummyBase<CSSRuleList>, public ScriptWrappable { | 36 class CSSRuleList : public ScriptWrappable { |
| 37 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
| 38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 38 WTF_MAKE_FAST_ALLOCATED; |
| 39 WTF_MAKE_NONCOPYABLE(CSSRuleList); | 39 WTF_MAKE_NONCOPYABLE(CSSRuleList); |
| 40 public: | 40 public: |
| 41 virtual ~CSSRuleList(); | 41 virtual ~CSSRuleList(); |
| 42 | 42 |
| 43 #if !ENABLE(OILPAN) | 43 #if !ENABLE(OILPAN) |
| 44 virtual void ref() = 0; | 44 virtual void ref() = 0; |
| 45 virtual void deref() = 0; | 45 virtual void deref() = 0; |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 virtual unsigned length() const = 0; | 48 virtual unsigned length() const = 0; |
| (...skipping 63 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 RawPtr<Rule> m_rule; | 116 RawPtr<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 |