OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 StyleSheetContents* contents() const { return m_contents.get(); } | 113 StyleSheetContents* contents() const { return m_contents.get(); } |
114 | 114 |
115 bool isInline() const { return m_isInlineStylesheet; } | 115 bool isInline() const { return m_isInlineStylesheet; } |
116 TextPosition startPositionInSource() const { return m_startPosition; } | 116 TextPosition startPositionInSource() const { return m_startPosition; } |
117 | 117 |
118 bool sheetLoaded(); | 118 bool sheetLoaded(); |
119 bool loadCompleted() const { return m_loadCompleted; } | 119 bool loadCompleted() const { return m_loadCompleted; } |
120 void startLoadingDynamicSheet(); | 120 void startLoadingDynamicSheet(); |
121 | 121 |
| 122 void purgeMemory() override; |
| 123 |
122 DECLARE_VIRTUAL_TRACE(); | 124 DECLARE_VIRTUAL_TRACE(); |
123 | 125 |
124 private: | 126 private: |
125 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); | 127 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); |
126 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); | 128 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); |
127 | 129 |
128 bool isCSSStyleSheet() const override { return true; } | 130 bool isCSSStyleSheet() const override { return true; } |
129 String type() const override { return "text/css"; } | 131 String type() const override { return "text/css"; } |
130 | 132 |
131 void reattachChildRuleCSSOMWrappers(); | 133 void reattachChildRuleCSSOMWrappers(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 { | 172 { |
171 if (m_styleSheet) | 173 if (m_styleSheet) |
172 m_styleSheet->didMutateRules(); | 174 m_styleSheet->didMutateRules(); |
173 } | 175 } |
174 | 176 |
175 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 177 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
176 | 178 |
177 } // namespace blink | 179 } // namespace blink |
178 | 180 |
179 #endif | 181 #endif |
OLD | NEW |