| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 const CSSParserContext& parserContext() const { return m_parserContext; } | 65 const CSSParserContext& parserContext() const { return m_parserContext; } |
| 66 | 66 |
| 67 const AtomicString& determineNamespace(const AtomicString& prefix); | 67 const AtomicString& determineNamespace(const AtomicString& prefix); |
| 68 | 68 |
| 69 void parseAuthorStyleSheet(const CSSStyleSheetResource*, const SecurityOrigi
n*); | 69 void parseAuthorStyleSheet(const CSSStyleSheetResource*, const SecurityOrigi
n*); |
| 70 bool parseString(const String&); | 70 bool parseString(const String&); |
| 71 bool parseStringAtPosition(const String&, const TextPosition&, bool); | 71 bool parseStringAtPosition(const String&, const TextPosition&, bool); |
| 72 | 72 |
| 73 bool isCacheable() const; | 73 bool isCacheable() const; |
| 74 bool maybeCacheable() const; | |
| 75 | 74 |
| 76 bool isLoading() const; | 75 bool isLoading() const; |
| 77 | 76 |
| 78 void checkLoaded(); | 77 void checkLoaded(); |
| 79 void startLoadingDynamicSheet(); | 78 void startLoadingDynamicSheet(); |
| 80 | 79 |
| 81 StyleSheetContents* rootStyleSheet() const; | 80 StyleSheetContents* rootStyleSheet() const; |
| 82 bool hasSingleOwnerNode() const; | 81 bool hasSingleOwnerNode() const; |
| 83 Node* singleOwnerNode() const; | 82 Node* singleOwnerNode() const; |
| 84 Document* singleOwnerDocument() const; | 83 Document* singleOwnerDocument() const; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool isMutable() const { return m_isMutable; } | 146 bool isMutable() const { return m_isMutable; } |
| 148 void setMutable() { m_isMutable = true; } | 147 void setMutable() { m_isMutable = true; } |
| 149 | 148 |
| 150 void removeSheetFromCache(Document*); | 149 void removeSheetFromCache(Document*); |
| 151 | 150 |
| 152 bool isInMemoryCache() const { return m_isInMemoryCache; } | 151 bool isInMemoryCache() const { return m_isInMemoryCache; } |
| 153 void addedToMemoryCache(); | 152 void addedToMemoryCache(); |
| 154 void removedFromMemoryCache(); | 153 void removedFromMemoryCache(); |
| 155 | 154 |
| 156 void setHasMediaQueries(); | 155 void setHasMediaQueries(); |
| 157 bool hasMediaQueries() { return m_hasMediaQueries; } | 156 bool hasMediaQueries() const { return m_hasMediaQueries; } |
| 157 |
| 158 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } |
| 158 | 159 |
| 159 void shrinkToFit(); | 160 void shrinkToFit(); |
| 160 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } | 161 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } |
| 161 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 162 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); |
| 162 void clearRuleSet(); | 163 void clearRuleSet(); |
| 163 | 164 |
| 164 void trace(Visitor*); | 165 void trace(Visitor*); |
| 165 | 166 |
| 166 private: | 167 private: |
| 167 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); | 168 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co
nst CSSParserContext&); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 195 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_loadingClients; | 196 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_loadingClients; |
| 196 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_completedClients
; | 197 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> > m_completedClients
; |
| 197 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> >::iterator
ClientsIterator; | 198 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSStyleSheet> >::iterator
ClientsIterator; |
| 198 | 199 |
| 199 OwnPtrWillBeMember<RuleSet> m_ruleSet; | 200 OwnPtrWillBeMember<RuleSet> m_ruleSet; |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace | 203 } // namespace |
| 203 | 204 |
| 204 #endif | 205 #endif |
| OLD | NEW |