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 "platform/heap/Handle.h" | 26 #include "platform/heap/Handle.h" |
26 #include "wtf/PassRefPtr.h" | 27 #include "wtf/PassRefPtr.h" |
27 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
28 #include "wtf/Vector.h" | 29 #include "wtf/Vector.h" |
29 | 30 |
30 namespace blink { | 31 namespace blink { |
31 | 32 |
32 class CSSRule; | 33 class CSSRule; |
33 class CSSStyleSheet; | 34 class CSSStyleSheet; |
34 | 35 |
35 class CSSRuleList : public NoBaseWillBeGarbageCollectedFinalized<CSSRuleList> { | 36 class CSSRuleList : public NoBaseWillBeGarbageCollectedFinalized<CSSRuleList>, p
ublic ScriptWrappable { |
36 WTF_MAKE_NONCOPYABLE(CSSRuleList); | 37 WTF_MAKE_NONCOPYABLE(CSSRuleList); |
37 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
38 public: | 39 public: |
39 virtual ~CSSRuleList(); | 40 virtual ~CSSRuleList(); |
40 | 41 |
41 #if !ENABLE(OILPAN) | 42 #if !ENABLE(OILPAN) |
42 virtual void ref() = 0; | 43 virtual void ref() = 0; |
43 virtual void deref() = 0; | 44 virtual void deref() = 0; |
44 #endif | 45 #endif |
45 | 46 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual unsigned length() const OVERRIDE { return m_rule->length(); } | 111 virtual unsigned length() const OVERRIDE { return m_rule->length(); } |
111 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i
ndex); } | 112 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i
ndex); } |
112 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt
yleSheet(); } | 113 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt
yleSheet(); } |
113 | 114 |
114 RawPtrWillBeMember<Rule> m_rule; | 115 RawPtrWillBeMember<Rule> m_rule; |
115 }; | 116 }; |
116 | 117 |
117 } // namespace blink | 118 } // namespace blink |
118 | 119 |
119 #endif // CSSRuleList_h | 120 #endif // CSSRuleList_h |
OLD | NEW |