| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 bool parseString(const String&); | 55 bool parseString(const String&); |
| 56 | 56 |
| 57 void parserAppendRule(PassRefPtr<StyleRuleBase>); | 57 void parserAppendRule(PassRefPtr<StyleRuleBase>); |
| 58 | 58 |
| 59 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul
es; } | 59 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul
es; } |
| 60 | 60 |
| 61 void registerClient(CSSStyleSheet*); | 61 void registerClient(CSSStyleSheet*); |
| 62 void unregisterClient(CSSStyleSheet*); | 62 void unregisterClient(CSSStyleSheet*); |
| 63 | 63 |
| 64 void setHasMediaQueries(); | |
| 65 bool hasMediaQueries() const { return m_hasMediaQueries; } | |
| 66 | |
| 67 void shrinkToFit(); | 64 void shrinkToFit(); |
| 68 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } | 65 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } |
| 69 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); | 66 RuleSet& ensureRuleSet(AddRuleFlags); |
| 70 void clearRuleSet(); | 67 void clearRuleSet(); |
| 71 | 68 |
| 72 private: | 69 private: |
| 73 explicit StyleSheetContents(const CSSParserContext&); | 70 explicit StyleSheetContents(const CSSParserContext&); |
| 74 | 71 |
| 75 bool m_hasMediaQueries : 1; | |
| 76 | |
| 77 OwnPtr<RuleSet> m_ruleSet; | 72 OwnPtr<RuleSet> m_ruleSet; |
| 78 Vector<RefPtr<StyleRuleBase> > m_childRules; | 73 Vector<RefPtr<StyleRuleBase> > m_childRules; |
| 79 CSSParserContext m_parserContext; | 74 CSSParserContext m_parserContext; |
| 80 | 75 |
| 81 HashSet<RawPtr<CSSStyleSheet> > m_clients; | 76 HashSet<RawPtr<CSSStyleSheet> > m_clients; |
| 82 }; | 77 }; |
| 83 | 78 |
| 84 } // namespace | 79 } // namespace |
| 85 | 80 |
| 86 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ | 81 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ |
| OLD | NEW |