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
27namespace WebCore {
28
29class CSSImportRule;
30class MediaList;
31class Node;
32class StyleSheet;
33
34class StyleSheet : public RefCounted<StyleSheet> {
35public:
36 virtual ~StyleSheet();
37
38 virtual bool disabled() const = 0;
39 virtual void setDisabled(bool) = 0;
40 virtual Node* ownerNode() const = 0;
41 virtual StyleSheet* parentStyleSheet() const { return 0; }
42 virtual String href() const = 0;
43 virtual String title() const = 0;
44 virtual MediaList* media() const { return 0; }
45 virtual String type() const = 0;
46
47 virtual CSSImportRule* ownerRule() const { return 0; }
48 virtual void clearOwnerNode() = 0;
49 virtual URL baseURL() const = 0;
50 virtual bool isLoading() const = 0;
51 virtual bool isCSSStyleSheet() const { return false; }
52 virtual bool isXSLStyleSheet() const { return false; }
53};
54
55} // namespace WebCore
56