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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Document* singleOwnerDocument() const; | 79 Document* singleOwnerDocument() const; |
80 | 80 |
81 const String& charset() const { return m_parserContext.charset; } | 81 const String& charset() const { return m_parserContext.charset; } |
82 | 82 |
83 bool loadCompleted() const { return m_loadCompleted; } | 83 bool loadCompleted() const { return m_loadCompleted; } |
84 bool hasFailedOrCanceledSubresources() const; | 84 bool hasFailedOrCanceledSubresources() const; |
85 | 85 |
86 KURL completeURL(const String& url) const; | 86 KURL completeURL(const String& url) const; |
87 void addSubresourceStyleURLs(ListHashSet<KURL>&); | 87 void addSubresourceStyleURLs(ListHashSet<KURL>&); |
88 | 88 |
89 void setIsUserStyleSheet(bool b) { m_isUserStyleSheet = b; } | |
90 bool isUserStyleSheet() const { return m_isUserStyleSheet; } | |
91 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } | 89 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } |
92 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 90 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
93 | 91 |
94 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; | 92 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; |
95 void parserAppendRule(PassRefPtr<StyleRuleBase>); | 93 void parserAppendRule(PassRefPtr<StyleRuleBase>); |
96 void parserSetEncodingFromCharsetRule(const String& encoding); | 94 void parserSetEncodingFromCharsetRule(const String& encoding); |
97 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 95 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
98 | 96 |
99 void clearRules(); | 97 void clearRules(); |
100 | 98 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 149 |
152 String m_originalURL; | 150 String m_originalURL; |
153 | 151 |
154 String m_encodingFromCharsetRule; | 152 String m_encodingFromCharsetRule; |
155 Vector<RefPtr<StyleRuleImport> > m_importRules; | 153 Vector<RefPtr<StyleRuleImport> > m_importRules; |
156 Vector<RefPtr<StyleRuleBase> > m_childRules; | 154 Vector<RefPtr<StyleRuleBase> > m_childRules; |
157 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; | 155 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; |
158 PrefixNamespaceURIMap m_namespaces; | 156 PrefixNamespaceURIMap m_namespaces; |
159 | 157 |
160 bool m_loadCompleted : 1; | 158 bool m_loadCompleted : 1; |
161 bool m_isUserStyleSheet : 1; | |
162 bool m_hasSyntacticallyValidCSSHeader : 1; | 159 bool m_hasSyntacticallyValidCSSHeader : 1; |
163 bool m_didLoadErrorOccur : 1; | 160 bool m_didLoadErrorOccur : 1; |
164 bool m_usesRemUnits : 1; | 161 bool m_usesRemUnits : 1; |
165 bool m_isMutable : 1; | 162 bool m_isMutable : 1; |
166 bool m_isInMemoryCache : 1; | 163 bool m_isInMemoryCache : 1; |
167 | 164 |
168 CSSParserContext m_parserContext; | 165 CSSParserContext m_parserContext; |
169 | 166 |
170 Vector<CSSStyleSheet*> m_clients; | 167 Vector<CSSStyleSheet*> m_clients; |
171 }; | 168 }; |
172 | 169 |
173 } // namespace | 170 } // namespace |
174 | 171 |
175 #endif | 172 #endif |
OLD | NEW |