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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 bool loadCompleted() const; | 86 bool loadCompleted() const; |
87 bool hasFailedOrCanceledSubresources() const; | 87 bool hasFailedOrCanceledSubresources() const; |
88 | 88 |
89 KURL completeURL(const String& url) const; | 89 KURL completeURL(const String& url) const; |
90 | 90 |
91 void setHasSyntacticallyValidCSSHeader(bool isValidCss); | 91 void setHasSyntacticallyValidCSSHeader(bool isValidCss); |
92 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 92 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
93 | 93 |
94 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } | 94 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } |
95 bool hasFontFaceRule() const { return m_hasFontFaceRule; } | 95 bool hasFontFaceRule() const { return m_hasFontFaceRule; } |
96 void findFontFaceRules(WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFo
ntFace> >& fontFaceRules); | 96 void findFontFaceRules(WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFo
ntFace>>& fontFaceRules); |
97 | 97 |
98 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; | 98 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; |
99 void parserAppendRule(PassRefPtrWillBeRawPtr<StyleRuleBase>); | 99 void parserAppendRule(PassRefPtrWillBeRawPtr<StyleRuleBase>); |
100 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 100 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
101 | 101 |
102 void clearRules(); | 102 void clearRules(); |
103 | 103 |
104 // Rules other than @import. | 104 // Rules other than @import. |
105 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& childRules() con
st { return m_childRules; } | 105 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>>& childRules() cons
t { return m_childRules; } |
106 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport> >& importRules()
const { return m_importRules; } | 106 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport>>& importRules() c
onst { return m_importRules; } |
107 | 107 |
108 void notifyLoadedSheet(const CSSStyleSheetResource*); | 108 void notifyLoadedSheet(const CSSStyleSheetResource*); |
109 | 109 |
110 StyleSheetContents* parentStyleSheet() const; | 110 StyleSheetContents* parentStyleSheet() const; |
111 StyleRuleImport* ownerRule() const { return m_ownerRule; } | 111 StyleRuleImport* ownerRule() const { return m_ownerRule; } |
112 void clearOwnerRule() { m_ownerRule = nullptr; } | 112 void clearOwnerRule() { m_ownerRule = nullptr; } |
113 | 113 |
114 // Note that href is the URL that started the redirect chain that led to | 114 // Note that href is the URL that started the redirect chain that led to |
115 // this style sheet. This property probably isn't useful for much except | 115 // this style sheet. This property probably isn't useful for much except |
116 // the JavaScript binding (which needs to use this value for security). | 116 // the JavaScript binding (which needs to use this value for security). |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); | 166 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); |
167 StyleSheetContents(const StyleSheetContents&); | 167 StyleSheetContents(const StyleSheetContents&); |
168 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); | 168 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); |
169 | 169 |
170 Document* clientSingleOwnerDocument() const; | 170 Document* clientSingleOwnerDocument() const; |
171 | 171 |
172 RawPtrWillBeMember<StyleRuleImport> m_ownerRule; | 172 RawPtrWillBeMember<StyleRuleImport> m_ownerRule; |
173 | 173 |
174 String m_originalURL; | 174 String m_originalURL; |
175 | 175 |
176 WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport> > m_importRules; | 176 WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport>> m_importRules; |
177 WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> > m_childRules; | 177 WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>> m_childRules; |
178 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; | 178 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; |
179 PrefixNamespaceURIMap m_namespaces; | 179 PrefixNamespaceURIMap m_namespaces; |
180 | 180 |
181 bool m_hasSyntacticallyValidCSSHeader : 1; | 181 bool m_hasSyntacticallyValidCSSHeader : 1; |
182 bool m_didLoadErrorOccur : 1; | 182 bool m_didLoadErrorOccur : 1; |
183 bool m_usesRemUnits : 1; | 183 bool m_usesRemUnits : 1; |
184 bool m_isMutable : 1; | 184 bool m_isMutable : 1; |
185 bool m_isInMemoryCache : 1; | 185 bool m_isInMemoryCache : 1; |
186 bool m_hasFontFaceRule : 1; | 186 bool m_hasFontFaceRule : 1; |
187 bool m_hasMediaQueries : 1; | 187 bool m_hasMediaQueries : 1; |
188 bool m_hasSingleOwnerDocument : 1; | 188 bool m_hasSingleOwnerDocument : 1; |
189 | 189 |
190 CSSParserContext m_parserContext; | 190 CSSParserContext m_parserContext; |
191 | 191 |
192 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_loadingClients; | 192 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_loadingClients; |
193 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_completedClients
; | 193 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet>> m_completedClients; |
194 | 194 |
195 OwnPtrWillBeMember<RuleSet> m_ruleSet; | 195 OwnPtrWillBeMember<RuleSet> m_ruleSet; |
196 String m_sourceMapURL; | 196 String m_sourceMapURL; |
197 }; | 197 }; |
198 | 198 |
199 } // namespace | 199 } // namespace |
200 | 200 |
201 #endif | 201 #endif |
OLD | NEW |