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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual const AtomicString& media() const = 0; | 47 virtual const AtomicString& media() const = 0; |
48 | 48 |
49 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 49 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
50 | 50 |
51 bool isLoading() const; | 51 bool isLoading() const; |
52 bool sheetLoaded(Document&); | 52 bool sheetLoaded(Document&); |
53 void startLoadingDynamicSheet(Document&); | 53 void startLoadingDynamicSheet(Document&); |
54 | 54 |
55 void insertedInto(Element*, ContainerNode* insertionPoint); | 55 void insertedInto(Element*, ContainerNode* insertionPoint); |
56 void removedFrom(Element*, ContainerNode* insertionPoint); | 56 void removedFrom(Element*, ContainerNode* insertionPoint); |
57 void clearDocumentData(Document&, Element*); | |
58 ProcessingResult processStyleSheet(Document&, Element*); | 57 ProcessingResult processStyleSheet(Document&, Element*); |
59 ProcessingResult childrenChanged(Element*); | 58 ProcessingResult childrenChanged(Element*); |
60 ProcessingResult finishParsingChildren(Element*); | 59 ProcessingResult finishParsingChildren(Element*); |
61 | 60 |
62 Member<CSSStyleSheet> m_sheet; | 61 Member<CSSStyleSheet> m_sheet; |
63 | 62 |
64 private: | 63 private: |
65 ProcessingResult createSheet(Element*, const String& text = String()); | 64 ProcessingResult createSheet(Element*, const String& text = String()); |
66 ProcessingResult process(Element*); | 65 ProcessingResult process(Element*); |
67 void clearSheet(Element* ownerElement = 0); | 66 void clearSheet(Element* ownerElement = 0); |
68 | 67 |
69 bool m_createdByParser : 1; | 68 bool m_createdByParser : 1; |
70 bool m_loading : 1; | 69 bool m_loading : 1; |
71 bool m_registeredAsCandidate : 1; | 70 bool m_registeredAsCandidate : 1; |
72 TextPosition m_startPosition; | 71 TextPosition m_startPosition; |
73 StyleEngineContext m_styleEngineContext; | 72 StyleEngineContext m_styleEngineContext; |
74 }; | 73 }; |
75 | 74 |
76 } // namespace blink | 75 } // namespace blink |
77 | 76 |
78 #endif | 77 #endif |
OLD | NEW |