| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 const CSSParserContext& parserContext() const { return m_parserContext; } | 63 const CSSParserContext& parserContext() const { return m_parserContext; } |
| 64 | 64 |
| 65 const AtomicString& determineNamespace(const AtomicString& prefix); | 65 const AtomicString& determineNamespace(const AtomicString& prefix); |
| 66 | 66 |
| 67 void parseAuthorStyleSheet(const CSSStyleSheetResource*, const SecurityOrigi
n*); | 67 void parseAuthorStyleSheet(const CSSStyleSheetResource*, const SecurityOrigi
n*); |
| 68 bool parseString(const String&); | 68 bool parseString(const String&); |
| 69 bool parseStringAtPosition(const String&, const TextPosition&, bool); | 69 bool parseStringAtPosition(const String&, const TextPosition&, bool); |
| 70 | 70 |
| 71 bool isCacheable() const; | 71 bool isCacheable() const; |
| 72 bool maybeCacheable() const; |
| 72 | 73 |
| 73 bool isLoading() const; | 74 bool isLoading() const; |
| 74 | 75 |
| 75 void checkLoaded(); | 76 void checkLoaded(); |
| 76 void startLoadingDynamicSheet(); | 77 void startLoadingDynamicSheet(); |
| 77 | 78 |
| 78 StyleSheetContents* rootStyleSheet() const; | 79 StyleSheetContents* rootStyleSheet() const; |
| 79 bool hasSingleOwnerNode() const; | 80 bool hasSingleOwnerNode() const; |
| 80 Node* singleOwnerNode() const; | 81 Node* singleOwnerNode() const; |
| 81 Document* singleOwnerDocument() const; | 82 Document* singleOwnerDocument() const; |
| 82 | 83 |
| 83 const String& charset() const { return m_parserContext.charset(); } | 84 const String& charset() const { return m_parserContext.charset(); } |
| 84 | 85 |
| 85 bool loadCompleted() const { return m_loadCompleted; } | 86 bool loadCompleted() const; |
| 86 bool hasFailedOrCanceledSubresources() const; | 87 bool hasFailedOrCanceledSubresources() const; |
| 87 | 88 |
| 88 KURL completeURL(const String& url) const; | 89 KURL completeURL(const String& url) const; |
| 89 | 90 |
| 90 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH
eader = b; } | 91 void setHasSyntacticallyValidCSSHeader(bool isValidCss); |
| 91 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | 92 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } |
| 92 | 93 |
| 93 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } | 94 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; } |
| 94 bool hasFontFaceRule() const { return m_hasFontFaceRule; } | 95 bool hasFontFaceRule() const { return m_hasFontFaceRule; } |
| 95 | 96 |
| 96 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; | 97 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri)
; |
| 97 void parserAppendRule(PassRefPtr<StyleRuleBase>); | 98 void parserAppendRule(PassRefPtr<StyleRuleBase>); |
| 98 void parserSetEncodingFromCharsetRule(const String& encoding); | 99 void parserSetEncodingFromCharsetRule(const String& encoding); |
| 99 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 100 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
| 100 | 101 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 StyleRuleImport* m_ownerRule; | 159 StyleRuleImport* m_ownerRule; |
| 159 | 160 |
| 160 String m_originalURL; | 161 String m_originalURL; |
| 161 | 162 |
| 162 String m_encodingFromCharsetRule; | 163 String m_encodingFromCharsetRule; |
| 163 Vector<RefPtr<StyleRuleImport> > m_importRules; | 164 Vector<RefPtr<StyleRuleImport> > m_importRules; |
| 164 Vector<RefPtr<StyleRuleBase> > m_childRules; | 165 Vector<RefPtr<StyleRuleBase> > m_childRules; |
| 165 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; | 166 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; |
| 166 PrefixNamespaceURIMap m_namespaces; | 167 PrefixNamespaceURIMap m_namespaces; |
| 167 | 168 |
| 168 bool m_loadCompleted : 1; | |
| 169 bool m_hasSyntacticallyValidCSSHeader : 1; | 169 bool m_hasSyntacticallyValidCSSHeader : 1; |
| 170 bool m_didLoadErrorOccur : 1; | 170 bool m_didLoadErrorOccur : 1; |
| 171 bool m_usesRemUnits : 1; | 171 bool m_usesRemUnits : 1; |
| 172 bool m_isMutable : 1; | 172 bool m_isMutable : 1; |
| 173 bool m_isInMemoryCache : 1; | 173 bool m_isInMemoryCache : 1; |
| 174 bool m_hasFontFaceRule : 1; | 174 bool m_hasFontFaceRule : 1; |
| 175 bool m_hasMediaQueries : 1; | 175 bool m_hasMediaQueries : 1; |
| 176 | 176 |
| 177 CSSParserContext m_parserContext; | 177 CSSParserContext m_parserContext; |
| 178 | 178 |
| 179 Vector<CSSStyleSheet*> m_clients; | 179 Vector<CSSStyleSheet*> m_clients; |
| 180 OwnPtr<RuleSet> m_ruleSet; | 180 OwnPtr<RuleSet> m_ruleSet; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace | 183 } // namespace |
| 184 | 184 |
| 185 #endif | 185 #endif |
| OLD | NEW |