| 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 26 matching lines...) Expand all Loading... |
| 37 protected: | 37 protected: |
| 38 virtual const AtomicString& type() const = 0; | 38 virtual const AtomicString& type() const = 0; |
| 39 virtual const AtomicString& media() const = 0; | 39 virtual const AtomicString& media() const = 0; |
| 40 | 40 |
| 41 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 41 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
| 42 | 42 |
| 43 bool isLoading() const; | 43 bool isLoading() const; |
| 44 bool sheetLoaded(Document*); | 44 bool sheetLoaded(Document*); |
| 45 void startLoadingDynamicSheet(Document*); | 45 void startLoadingDynamicSheet(Document*); |
| 46 | 46 |
| 47 void insertedIntoDocument(Document*, Element*); | 47 void processStyleSheet(Document*, Element*); |
| 48 void removedFromDocument(Document*, Element*); | 48 void removedFromDocument(Document*, Element*); |
| 49 void clearDocumentData(Document*, Element*); | 49 void clearDocumentData(Document*, Element*); |
| 50 void childrenChanged(Element*); | 50 void childrenChanged(Element*); |
| 51 void finishParsingChildren(Element*); | 51 void finishParsingChildren(Element*); |
| 52 | 52 |
| 53 RefPtr<CSSStyleSheet> m_sheet; | 53 RefPtr<CSSStyleSheet> m_sheet; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 void createSheet(Element*, const String& text = String()); | 56 void createSheet(Element*, const String& text = String()); |
| 57 void process(Element*); | 57 void process(Element*); |
| 58 void clearSheet(); | 58 void clearSheet(); |
| 59 | 59 |
| 60 bool m_createdByParser; | 60 bool m_createdByParser; |
| 61 bool m_loading; | 61 bool m_loading; |
| 62 TextPosition m_startPosition; | 62 TextPosition m_startPosition; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 #endif | 67 #endif |
| OLD | NEW |