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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 bool hasMediaQueries() const { return m_hasMediaQueries; } | 151 bool hasMediaQueries() const { return m_hasMediaQueries; } |
152 | 152 |
153 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } | 153 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } |
154 | 154 |
155 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } | 155 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } |
156 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 156 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); |
157 void clearRuleSet(); | 157 void clearRuleSet(); |
158 | 158 |
159 String sourceMapURL() const { return m_sourceMapURL; } | 159 String sourceMapURL() const { return m_sourceMapURL; } |
160 | 160 |
| 161 void purgeMemory(); |
| 162 |
161 DECLARE_TRACE(); | 163 DECLARE_TRACE(); |
162 | 164 |
163 private: | 165 private: |
164 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); | 166 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); |
165 StyleSheetContents(const StyleSheetContents&); | 167 StyleSheetContents(const StyleSheetContents&); |
166 StyleSheetContents() = delete; | 168 StyleSheetContents() = delete; |
167 StyleSheetContents& operator=(const StyleSheetContents&) = delete; | 169 StyleSheetContents& operator=(const StyleSheetContents&) = delete; |
168 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); | 170 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); |
169 | 171 |
170 Document* clientSingleOwnerDocument() const; | 172 Document* clientSingleOwnerDocument() const; |
(...skipping 22 matching lines...) Expand all Loading... |
193 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_loadingClients; | 195 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_loadingClients; |
194 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_completedClients; | 196 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_completedClients; |
195 | 197 |
196 OwnPtrWillBeMember<RuleSet> m_ruleSet; | 198 OwnPtrWillBeMember<RuleSet> m_ruleSet; |
197 String m_sourceMapURL; | 199 String m_sourceMapURL; |
198 }; | 200 }; |
199 | 201 |
200 } // namespace blink | 202 } // namespace blink |
201 | 203 |
202 #endif | 204 #endif |
OLD | NEW |