1 | /*
|
---|
2 | * (C) 1999-2003 Lars Knoll ([email protected])
|
---|
3 | * Copyright (C) 2004, 2006, 2008, 2012 Apple Inc. All rights reserved.
|
---|
4 | *
|
---|
5 | * This library is free software; you can redistribute it and/or
|
---|
6 | * modify it under the terms of the GNU Library General Public
|
---|
7 | * License as published by the Free Software Foundation; either
|
---|
8 | * version 2 of the License, or (at your option) any later version.
|
---|
9 | *
|
---|
10 | * This library is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
13 | * Library General Public License for more details.
|
---|
14 | *
|
---|
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
|
---|
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
---|
18 | * Boston, MA 02110-1301, USA.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #pragma once
|
---|
22 |
|
---|
23 | #include "CSSParserMode.h"
|
---|
24 | #include <wtf/Forward.h>
|
---|
25 | #include <wtf/RefCounted.h>
|
---|
26 |
|
---|
27 | namespace WTF {
|
---|
28 | class TextStream;
|
---|
29 | }
|
---|
30 |
|
---|
31 | namespace WebCore {
|
---|
32 |
|
---|
33 | class CSSImportRule;
|
---|
34 | class MediaList;
|
---|
35 | class Node;
|
---|
36 | class StyleSheet;
|
---|
37 |
|
---|
38 | class StyleSheet : public RefCounted<StyleSheet> {
|
---|
39 | public:
|
---|
40 | virtual ~StyleSheet();
|
---|
41 |
|
---|
42 | virtual bool disabled() const = 0;
|
---|
43 | virtual void setDisabled(bool) = 0;
|
---|
44 | virtual Node* ownerNode() const = 0;
|
---|
45 | virtual StyleSheet* parentStyleSheet() const { return 0; }
|
---|
46 | virtual String href() const = 0;
|
---|
47 | virtual String title() const = 0;
|
---|
48 | virtual MediaList* media() const { return 0; }
|
---|
49 | virtual String type() const = 0;
|
---|
50 |
|
---|
51 | virtual CSSImportRule* ownerRule() const { return 0; }
|
---|
52 | virtual void clearOwnerNode() = 0;
|
---|
53 | virtual URL baseURL() const = 0;
|
---|
54 | virtual bool isLoading() const = 0;
|
---|
55 | virtual bool isCSSStyleSheet() const { return false; }
|
---|
56 | virtual bool isXSLStyleSheet() const { return false; }
|
---|
57 |
|
---|
58 | virtual String debugDescription() const = 0;
|
---|
59 | };
|
---|
60 |
|
---|
61 | TextStream& operator<<(TextStream&, const StyleSheet&);
|
---|
62 |
|
---|
63 | } // namespace WebCore
|
---|