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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } | 89 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } |
90 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 90 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
91 | 91 |
| 92 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } |
| 93 bool hasFontFaceRule() const { return m_hasFontFaceRule; } |
| 94 |
92 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; | 95 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; |
93 void parserAppendRule(PassRefPtr<StyleRuleBase>); | 96 void parserAppendRule(PassRefPtr<StyleRuleBase>); |
94 void parserSetEncodingFromCharsetRule(const String& encoding); | 97 void parserSetEncodingFromCharsetRule(const String& encoding); |
95 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 98 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
96 | 99 |
97 void clearRules(); | 100 void clearRules(); |
98 | 101 |
99 bool hasCharsetRule() const { return !m_encodingFromCharsetRule.isNull(); } | 102 bool hasCharsetRule() const { return !m_encodingFromCharsetRule.isNull(); } |
100 String encodingFromCharsetRule() const { return m_encodingFromCharsetRule; } | 103 String encodingFromCharsetRule() const { return m_encodingFromCharsetRule; } |
101 // Rules other than @charset and @import. | 104 // Rules other than @charset and @import. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 Vector<RefPtr<StyleRuleBase> > m_childRules; | 157 Vector<RefPtr<StyleRuleBase> > m_childRules; |
155 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; | 158 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; |
156 PrefixNamespaceURIMap m_namespaces; | 159 PrefixNamespaceURIMap m_namespaces; |
157 | 160 |
158 bool m_loadCompleted : 1; | 161 bool m_loadCompleted : 1; |
159 bool m_hasSyntacticallyValidCSSHeader : 1; | 162 bool m_hasSyntacticallyValidCSSHeader : 1; |
160 bool m_didLoadErrorOccur : 1; | 163 bool m_didLoadErrorOccur : 1; |
161 bool m_usesRemUnits : 1; | 164 bool m_usesRemUnits : 1; |
162 bool m_isMutable : 1; | 165 bool m_isMutable : 1; |
163 bool m_isInMemoryCache : 1; | 166 bool m_isInMemoryCache : 1; |
| 167 bool m_hasFontFaceRule : 1; |
164 | 168 |
165 CSSParserContext m_parserContext; | 169 CSSParserContext m_parserContext; |
166 | 170 |
167 Vector<CSSStyleSheet*> m_clients; | 171 Vector<CSSStyleSheet*> m_clients; |
168 }; | 172 }; |
169 | 173 |
170 } // namespace | 174 } // namespace |
171 | 175 |
172 #endif | 176 #endif |
OLD | NEW |