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