Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: sky/engine/core/css/StyleSheetContents.h

Issue 858423002: Don't store a RuleFeatureSet on ScopedStyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: better test names. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 const CSSParserContext& parserContext() const { return m_parserContext; } 54 const CSSParserContext& parserContext() const { return m_parserContext; }
55 55
56 bool parseString(const String&); 56 bool parseString(const String&);
57 57
58 void parserAppendRule(PassRefPtr<StyleRuleBase>); 58 void parserAppendRule(PassRefPtr<StyleRuleBase>);
59 59
60 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul es; } 60 const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRul es; }
61 61
62 void shrinkToFit(); 62 void shrinkToFit();
63 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); }
64 RuleSet& ensureRuleSet(); 63 RuleSet& ensureRuleSet();
65 64
66 private: 65 private:
67 explicit StyleSheetContents(Document* document, const CSSParserContext&); 66 explicit StyleSheetContents(Document* document, const CSSParserContext&);
68 67
69 OwnPtr<RuleSet> m_ruleSet; 68 OwnPtr<RuleSet> m_ruleSet;
70 Vector<RefPtr<StyleRuleBase> > m_childRules; 69 Vector<RefPtr<StyleRuleBase> > m_childRules;
71 CSSParserContext m_parserContext; 70 CSSParserContext m_parserContext;
72 71
73 RefPtr<Document> m_document; 72 RefPtr<Document> m_document;
74 }; 73 };
75 74
76 } // namespace 75 } // namespace
77 76
78 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_ 77 #endif // SKY_ENGINE_CORE_CSS_STYLESHEETCONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698