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

Side by Side Diff: sky/engine/core/css/StyleSheet.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/StyleRuleKeyframes.cpp ('k') | sky/engine/core/css/StyleSheet.idl » ('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, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2008, 2012 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_STYLESHEET_H_ 21 #ifndef SKY_ENGINE_CORE_CSS_STYLESHEET_H_
22 #define SKY_ENGINE_CORE_CSS_STYLESHEET_H_ 22 #define SKY_ENGINE_CORE_CSS_STYLESHEET_H_
23 23
24 #include "sky/engine/bindings/core/v8/ScriptWrappable.h"
25 #include "sky/engine/core/css/parser/CSSParserMode.h" 24 #include "sky/engine/core/css/parser/CSSParserMode.h"
26 #include "sky/engine/platform/heap/Handle.h" 25 #include "sky/engine/platform/heap/Handle.h"
27 #include "sky/engine/wtf/Forward.h" 26 #include "sky/engine/wtf/Forward.h"
28 #include "sky/engine/wtf/RefCounted.h" 27 #include "sky/engine/wtf/RefCounted.h"
29 28
30 namespace blink { 29 namespace blink {
31 30
32 class CSSRule;
33 class KURL; 31 class KURL;
34 class MediaList; 32 class MediaList;
35 class Node; 33 class Node;
36 class StyleSheet; 34 class StyleSheet;
37 35
38 class StyleSheet : public RefCounted<StyleSheet>, public ScriptWrappable { 36 class StyleSheet : public RefCounted<StyleSheet> {
39 DEFINE_WRAPPERTYPEINFO();
40 public: 37 public:
41 StyleSheet() 38 StyleSheet()
42 { 39 {
43 } 40 }
44 virtual ~StyleSheet(); 41 virtual ~StyleSheet();
45 42
46 virtual Node* ownerNode() const = 0; 43 virtual Node* ownerNode() const = 0;
47 virtual MediaList* media() const { return 0; }
48 virtual String type() const = 0; 44 virtual String type() const = 0;
49 45
50 virtual void clearOwnerNode() = 0; 46 virtual void clearOwnerNode() = 0;
51 virtual KURL baseURL() const = 0; 47 virtual KURL baseURL() const = 0;
52 virtual bool isCSSStyleSheet() const { return false; } 48 virtual bool isCSSStyleSheet() const { return false; }
53 }; 49 };
54 50
55 } // namespace blink 51 } // namespace blink
56 52
57 #endif // SKY_ENGINE_CORE_CSS_STYLESHEET_H_ 53 #endif // SKY_ENGINE_CORE_CSS_STYLESHEET_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/StyleRuleKeyframes.cpp ('k') | sky/engine/core/css/StyleSheet.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698