OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Rob Buis | 2 * Copyright (C) 2006, 2007 Rob Buis |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual const AtomicString& media() const = 0; | 38 virtual const AtomicString& media() const = 0; |
39 | 39 |
40 StyleSheet* sheet() const { return m_sheet.get(); } | 40 StyleSheet* sheet() const { return m_sheet.get(); } |
41 | 41 |
42 bool isLoading() const; | 42 bool isLoading() const; |
43 bool sheetLoaded(Document*); | 43 bool sheetLoaded(Document*); |
44 void startLoadingDynamicSheet(Document*); | 44 void startLoadingDynamicSheet(Document*); |
45 | 45 |
46 void insertedIntoDocument(Document*, Element*); | 46 void insertedIntoDocument(Document*, Element*); |
47 void removedFromDocument(Document*, Element*); | 47 void removedFromDocument(Document*, Element*); |
| 48 void clearDocumentData(Document*, Element*); |
48 void childrenChanged(Element*); | 49 void childrenChanged(Element*); |
49 void finishParsingChildren(Element*); | 50 void finishParsingChildren(Element*); |
50 | 51 |
51 RefPtr<CSSStyleSheet> m_sheet; | 52 RefPtr<CSSStyleSheet> m_sheet; |
52 | 53 |
53 private: | 54 private: |
54 void createSheet(Element*, int startLineNumber, const String& text = String(
)); | 55 void createSheet(Element*, int startLineNumber, const String& text = String(
)); |
55 void process(Element*); | 56 void process(Element*); |
56 | 57 |
57 bool m_createdByParser; | 58 bool m_createdByParser; |
58 bool m_loading; | 59 bool m_loading; |
59 int m_startLineNumber; | 60 int m_startLineNumber; |
60 }; | 61 }; |
61 | 62 |
62 } | 63 } |
63 | 64 |
64 #endif | 65 #endif |
OLD | NEW |