Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: Source/core/css/StyleSheetList.h

Issue 412183003: bindings: Makes more DOM classes inherit from ScriptWrappable (part 3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted RGBColor and Rect. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/StyleSheet.h ('k') | Source/core/css/StyleSheetList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef StyleSheetList_h 21 #ifndef StyleSheetList_h
22 #define StyleSheetList_h 22 #define StyleSheetList_h
23 23
24 #include "bindings/core/v8/ScriptWrappable.h"
24 #include "core/css/CSSStyleSheet.h" 25 #include "core/css/CSSStyleSheet.h"
25 #include "core/dom/TreeScope.h" 26 #include "core/dom/TreeScope.h"
26 #include "wtf/Forward.h" 27 #include "wtf/Forward.h"
27 #include "wtf/PassRefPtr.h" 28 #include "wtf/PassRefPtr.h"
28 #include "wtf/RefCounted.h" 29 #include "wtf/RefCounted.h"
29 #include "wtf/Vector.h" 30 #include "wtf/Vector.h"
30 31
31 namespace blink { 32 namespace blink {
32 33
33 class HTMLStyleElement; 34 class HTMLStyleElement;
34 class StyleSheet; 35 class StyleSheet;
35 36
36 class StyleSheetList : public RefCountedWillBeGarbageCollectedFinalized<StyleShe etList> { 37 class StyleSheetList : public RefCountedWillBeGarbageCollectedFinalized<StyleShe etList>, public ScriptWrappable {
37 public: 38 public:
38 static PassRefPtrWillBeRawPtr<StyleSheetList> create(TreeScope* treeScope) { return adoptRefWillBeNoop(new StyleSheetList(treeScope)); } 39 static PassRefPtrWillBeRawPtr<StyleSheetList> create(TreeScope* treeScope) { return adoptRefWillBeNoop(new StyleSheetList(treeScope)); }
39 ~StyleSheetList(); 40 ~StyleSheetList();
40 41
41 unsigned length(); 42 unsigned length();
42 StyleSheet* item(unsigned index); 43 StyleSheet* item(unsigned index);
43 44
44 HTMLStyleElement* getNamedItem(const AtomicString&) const; 45 HTMLStyleElement* getNamedItem(const AtomicString&) const;
45 46
46 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; } 47 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; }
(...skipping 12 matching lines...) Expand all
59 60
60 RawPtrWillBeMember<TreeScope> m_treeScope; 61 RawPtrWillBeMember<TreeScope> m_treeScope;
61 #if !ENABLE(OILPAN) 62 #if !ENABLE(OILPAN)
62 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets; 63 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets;
63 #endif 64 #endif
64 }; 65 };
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif // StyleSheetList_h 69 #endif // StyleSheetList_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheet.h ('k') | Source/core/css/StyleSheetList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698