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

Side by Side Diff: sky/engine/core/css/StyleSheetList.h

Issue 780483002: Remove the CSSOM. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/css/StyleSheet.idl ('k') | sky/engine/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 SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_ 21 #ifndef SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_
22 #define SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_ 22 #define SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_
23 23
24 #include "sky/engine/bindings/core/v8/ScriptWrappable.h"
25 #include "sky/engine/core/css/CSSStyleSheet.h" 24 #include "sky/engine/core/css/CSSStyleSheet.h"
26 #include "sky/engine/core/dom/TreeScope.h" 25 #include "sky/engine/core/dom/TreeScope.h"
27 #include "sky/engine/wtf/Forward.h" 26 #include "sky/engine/wtf/Forward.h"
28 #include "sky/engine/wtf/PassRefPtr.h" 27 #include "sky/engine/wtf/PassRefPtr.h"
29 #include "sky/engine/wtf/RefCounted.h" 28 #include "sky/engine/wtf/RefCounted.h"
30 #include "sky/engine/wtf/Vector.h" 29 #include "sky/engine/wtf/Vector.h"
31 30
32 namespace blink { 31 namespace blink {
33 32
34 class HTMLStyleElement; 33 class HTMLStyleElement;
35 class StyleSheet; 34 class StyleSheet;
36 35
37 class StyleSheetList : public RefCounted<StyleSheetList>, public ScriptWrappable { 36 class StyleSheetList : public RefCounted<StyleSheetList> {
38 DEFINE_WRAPPERTYPEINFO();
39 public: 37 public:
40 static PassRefPtr<StyleSheetList> create(TreeScope* treeScope) { return adop tRef(new StyleSheetList(treeScope)); } 38 static PassRefPtr<StyleSheetList> create(TreeScope* treeScope) { return adop tRef(new StyleSheetList(treeScope)); }
41 ~StyleSheetList(); 39 ~StyleSheetList();
42 40
43 unsigned length(); 41 unsigned length();
44 StyleSheet* item(unsigned index); 42 StyleSheet* item(unsigned index);
45 43
46 HTMLStyleElement* getNamedItem(const AtomicString&) const; 44 HTMLStyleElement* getNamedItem(const AtomicString&) const;
47 45
48 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; } 46 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; }
(...skipping 10 matching lines...) Expand all
59 57
60 RawPtr<TreeScope> m_treeScope; 58 RawPtr<TreeScope> m_treeScope;
61 #if !ENABLE(OILPAN) 59 #if !ENABLE(OILPAN)
62 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets; 60 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets;
63 #endif 61 #endif
64 }; 62 };
65 63
66 } // namespace blink 64 } // namespace blink
67 65
68 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_ 66 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETLIST_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/StyleSheet.idl ('k') | sky/engine/core/css/StyleSheetList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698