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 16 matching lines...) Expand all Loading... |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 class ContainerNode; | 29 class ContainerNode; |
30 class Document; | 30 class Document; |
31 class Element; | 31 class Element; |
32 | 32 |
33 class StyleElement : public WillBeGarbageCollectedMixin { | 33 class StyleElement : public WillBeGarbageCollectedMixin { |
34 public: | 34 public: |
35 StyleElement(Document*, bool createdByParser); | 35 StyleElement(Document*, bool createdByParser); |
36 virtual ~StyleElement(); | 36 virtual ~StyleElement(); |
37 virtual void trace(Visitor*); | 37 DECLARE_VIRTUAL_TRACE(); |
38 | 38 |
39 protected: | 39 protected: |
40 virtual const AtomicString& type() const = 0; | 40 virtual const AtomicString& type() const = 0; |
41 virtual const AtomicString& media() const = 0; | 41 virtual const AtomicString& media() const = 0; |
42 | 42 |
43 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 43 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
44 | 44 |
45 bool isLoading() const; | 45 bool isLoading() const; |
46 bool sheetLoaded(Document&); | 46 bool sheetLoaded(Document&); |
47 void startLoadingDynamicSheet(Document&); | 47 void startLoadingDynamicSheet(Document&); |
(...skipping 14 matching lines...) Expand all Loading... |
62 | 62 |
63 bool m_createdByParser : 1; | 63 bool m_createdByParser : 1; |
64 bool m_loading : 1; | 64 bool m_loading : 1; |
65 bool m_registeredAsCandidate : 1; | 65 bool m_registeredAsCandidate : 1; |
66 TextPosition m_startPosition; | 66 TextPosition m_startPosition; |
67 }; | 67 }; |
68 | 68 |
69 } | 69 } |
70 | 70 |
71 #endif | 71 #endif |
OLD | NEW |