| 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 bool isCacheable() const; | 62 bool isCacheable() const; |
| 63 | 63 |
| 64 bool hasSingleOwnerNode() const; | 64 bool hasSingleOwnerNode() const; |
| 65 Node* singleOwnerNode() const; | 65 Node* singleOwnerNode() const; |
| 66 Document* singleOwnerDocument() const; | 66 Document* singleOwnerDocument() const; |
| 67 | 67 |
| 68 bool hasFailedOrCanceledSubresources() const; | 68 bool hasFailedOrCanceledSubresources() const; |
| 69 | 69 |
| 70 KURL completeURL(const String& url) const; | 70 KURL completeURL(const String& url) const; |
| 71 | 71 |
| 72 void setHasSyntacticallyValidCSSHeader(bool isValidCss); | |
| 73 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid
CSSHeader; } | |
| 74 | |
| 75 void parserAppendRule(PassRefPtr<StyleRuleBase>); | 72 void parserAppendRule(PassRefPtr<StyleRuleBase>); |
| 76 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } | 73 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } |
| 77 | 74 |
| 78 void clearRules(); | 75 void clearRules(); |
| 79 | 76 |
| 80 // Rules other than @charset and @import. | 77 // Rules other than @charset and @import. |
| 81 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul
es; } | 78 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul
es; } |
| 82 | 79 |
| 83 // Note that href is the URL that started the redirect chain that led to | 80 // Note that href is the URL that started the redirect chain that led to |
| 84 // this style sheet. This property probably isn't useful for much except | 81 // this style sheet. This property probably isn't useful for much except |
| (...skipping 21 matching lines...) Expand all Loading... |
| 106 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 103 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); |
| 107 void clearRuleSet(); | 104 void clearRuleSet(); |
| 108 | 105 |
| 109 private: | 106 private: |
| 110 StyleSheetContents(const String& originalURL, const CSSParserContext&); | 107 StyleSheetContents(const String& originalURL, const CSSParserContext&); |
| 111 | 108 |
| 112 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); | 109 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); |
| 113 | 110 |
| 114 Document* clientSingleOwnerDocument() const; | 111 Document* clientSingleOwnerDocument() const; |
| 115 | 112 |
| 116 bool m_hasSyntacticallyValidCSSHeader : 1; | |
| 117 bool m_usesRemUnits : 1; | 113 bool m_usesRemUnits : 1; |
| 118 bool m_hasMediaQueries : 1; | 114 bool m_hasMediaQueries : 1; |
| 119 bool m_hasSingleOwnerDocument : 1; | 115 bool m_hasSingleOwnerDocument : 1; |
| 120 | 116 |
| 121 String m_originalURL; | 117 String m_originalURL; |
| 122 OwnPtr<RuleSet> m_ruleSet; | 118 OwnPtr<RuleSet> m_ruleSet; |
| 123 Vector<RefPtr<StyleRuleBase> > m_childRules; | 119 Vector<RefPtr<StyleRuleBase> > m_childRules; |
| 124 CSSParserContext m_parserContext; | 120 CSSParserContext m_parserContext; |
| 125 | 121 |
| 126 HashSet<RawPtr<CSSStyleSheet> > m_loadingClients; | 122 HashSet<RawPtr<CSSStyleSheet> > m_loadingClients; |
| 127 HashSet<RawPtr<CSSStyleSheet> > m_completedClients; | 123 HashSet<RawPtr<CSSStyleSheet> > m_completedClients; |
| 128 typedef HashSet<RawPtr<CSSStyleSheet> >::iterator ClientsIterator; | 124 typedef HashSet<RawPtr<CSSStyleSheet> >::iterator ClientsIterator; |
| 129 }; | 125 }; |
| 130 | 126 |
| 131 } // namespace | 127 } // namespace |
| 132 | 128 |
| 133 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ | 129 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ |
| OLD | NEW |