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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 StyleSheetContents* rootStyleSheet() const; | 80 StyleSheetContents* rootStyleSheet() const; |
81 bool hasSingleOwnerNode() const; | 81 bool hasSingleOwnerNode() const; |
82 Node* singleOwnerNode() const; | 82 Node* singleOwnerNode() const; |
83 Document* singleOwnerDocument() const; | 83 Document* singleOwnerDocument() const; |
84 | 84 |
85 const String& charset() const { return m_parserContext.charset(); } | 85 const String& charset() const { return m_parserContext.charset(); } |
86 | 86 |
87 bool loadCompleted() const; | 87 bool loadCompleted() const; |
88 bool hasFailedOrCanceledSubresources() const; | 88 bool hasFailedOrCanceledSubresources() const; |
89 | 89 |
90 KURL completeURL(const String& url) const; | |
91 | |
92 void setHasSyntacticallyValidCSSHeader(bool isValidCss); | 90 void setHasSyntacticallyValidCSSHeader(bool isValidCss); |
93 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 91 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
94 | 92 |
95 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } | 93 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } |
96 bool hasFontFaceRule() const { return m_hasFontFaceRule; } | 94 bool hasFontFaceRule() const { return m_hasFontFaceRule; } |
97 void findFontFaceRules(WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFo
ntFace>>& fontFaceRules); | 95 void findFontFaceRules(WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFo
ntFace>>& fontFaceRules); |
98 | 96 |
99 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; | 97 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; |
100 void parserAppendRule(PassRefPtrWillBeRawPtr<StyleRuleBase>); | 98 void parserAppendRule(PassRefPtrWillBeRawPtr<StyleRuleBase>); |
101 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 99 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 145 |
148 bool isInMemoryCache() const { return m_isInMemoryCache; } | 146 bool isInMemoryCache() const { return m_isInMemoryCache; } |
149 void addedToMemoryCache(); | 147 void addedToMemoryCache(); |
150 void removedFromMemoryCache(); | 148 void removedFromMemoryCache(); |
151 | 149 |
152 void setHasMediaQueries(); | 150 void setHasMediaQueries(); |
153 bool hasMediaQueries() const { return m_hasMediaQueries; } | 151 bool hasMediaQueries() const { return m_hasMediaQueries; } |
154 | 152 |
155 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } | 153 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } |
156 | 154 |
157 void shrinkToFit(); | |
158 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } | 155 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } |
159 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 156 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); |
160 void clearRuleSet(); | 157 void clearRuleSet(); |
161 | 158 |
162 String sourceMapURL() const { return m_sourceMapURL; } | 159 String sourceMapURL() const { return m_sourceMapURL; } |
163 | 160 |
164 DECLARE_TRACE(); | 161 DECLARE_TRACE(); |
165 | 162 |
166 private: | 163 private: |
167 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); | 164 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); |
(...skipping 27 matching lines...) Expand all Loading... |
195 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_loadingClients; | 192 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_loadingClients; |
196 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_completedClients; | 193 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_completedClients; |
197 | 194 |
198 OwnPtrWillBeMember<RuleSet> m_ruleSet; | 195 OwnPtrWillBeMember<RuleSet> m_ruleSet; |
199 String m_sourceMapURL; | 196 String m_sourceMapURL; |
200 }; | 197 }; |
201 | 198 |
202 } // namespace | 199 } // namespace |
203 | 200 |
204 #endif | 201 #endif |
OLD | NEW |