| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 bool hasMediaQueries() const { return m_hasMediaQueries; } | 73 bool hasMediaQueries() const { return m_hasMediaQueries; } |
| 74 | 74 |
| 75 void shrinkToFit(); | 75 void shrinkToFit(); |
| 76 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } | 76 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } |
| 77 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 77 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); |
| 78 void clearRuleSet(); | 78 void clearRuleSet(); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 explicit StyleSheetContents(const CSSParserContext&); | 81 explicit StyleSheetContents(const CSSParserContext&); |
| 82 | 82 |
| 83 void notifyRemoveFontFaceRule(const StyleRuleFontFace*); | |
| 84 | |
| 85 bool m_usesRemUnits : 1; | 83 bool m_usesRemUnits : 1; |
| 86 bool m_hasMediaQueries : 1; | 84 bool m_hasMediaQueries : 1; |
| 87 | 85 |
| 88 OwnPtr<RuleSet> m_ruleSet; | 86 OwnPtr<RuleSet> m_ruleSet; |
| 89 Vector<RefPtr<StyleRuleBase> > m_childRules; | 87 Vector<RefPtr<StyleRuleBase> > m_childRules; |
| 90 CSSParserContext m_parserContext; | 88 CSSParserContext m_parserContext; |
| 91 | 89 |
| 92 HashSet<RawPtr<CSSStyleSheet> > m_loadingClients; | 90 HashSet<RawPtr<CSSStyleSheet> > m_clients; |
| 93 HashSet<RawPtr<CSSStyleSheet> > m_completedClients; | |
| 94 typedef HashSet<RawPtr<CSSStyleSheet> >::iterator ClientsIterator; | |
| 95 }; | 91 }; |
| 96 | 92 |
| 97 } // namespace | 93 } // namespace |
| 98 | 94 |
| 99 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ | 95 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ |
| OLD | NEW |