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

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

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/RuleSet.h ('k') | sky/engine/core/css/invalidation/StyleInvalidator.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 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 18 matching lines...) Expand all
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class CSSRule; 32 class CSSRule;
33 class CSSStyleRule; 33 class CSSStyleRule;
34 class CSSStyleSheet; 34 class CSSStyleSheet;
35 class MutableStylePropertySet; 35 class MutableStylePropertySet;
36 class StylePropertySet; 36 class StylePropertySet;
37 37
38 class StyleRuleBase : public RefCounted<StyleRuleBase> { 38 class StyleRuleBase : public RefCounted<StyleRuleBase> {
39 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 39 WTF_MAKE_FAST_ALLOCATED;
40 public: 40 public:
41 enum Type { 41 enum Type {
42 Unknown, // Not used. 42 Unknown, // Not used.
43 Style, 43 Style,
44 Media, 44 Media,
45 FontFace = 4, 45 FontFace = 4,
46 Keyframes = 5, 46 Keyframes = 5,
47 Keyframe, // Not used. These are internally non-rule StyleKeyframe objec ts. 47 Keyframe, // Not used. These are internally non-rule StyleKeyframe objec ts.
48 Supports = 12, 48 Supports = 12,
49 Filter = 17 49 Filter = 17
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 private: 85 private:
86 void destroy(); 86 void destroy();
87 87
88 PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const; 88 PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const;
89 89
90 unsigned m_type : 5; 90 unsigned m_type : 5;
91 }; 91 };
92 92
93 class StyleRule : public StyleRuleBase { 93 class StyleRule : public StyleRuleBase {
94 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 94 WTF_MAKE_FAST_ALLOCATED;
95 public: 95 public:
96 static PassRefPtr<StyleRule> create() { return adoptRef(new StyleRule()); } 96 static PassRefPtr<StyleRule> create() { return adoptRef(new StyleRule()); }
97 97
98 ~StyleRule(); 98 ~StyleRule();
99 99
100 const CSSSelectorList& selectorList() const { return m_selectorList; } 100 const CSSSelectorList& selectorList() const { return m_selectorList; }
101 const StylePropertySet& properties() const { return *m_properties; } 101 const StylePropertySet& properties() const { return *m_properties; }
102 MutableStylePropertySet& mutableProperties(); 102 MutableStylePropertySet& mutableProperties();
103 103
104 void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectors ) { m_selectorList.adoptSelectorVector(selectors); } 104 void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectors ) { m_selectorList.adoptSelectorVector(selectors); }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isSt yleRule()); 230 DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isSt yleRule());
231 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); 231 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
232 DEFINE_STYLE_RULE_TYPE_CASTS(Media); 232 DEFINE_STYLE_RULE_TYPE_CASTS(Media);
233 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); 233 DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
234 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); 234 DEFINE_STYLE_RULE_TYPE_CASTS(Filter);
235 235
236 } // namespace blink 236 } // namespace blink
237 237
238 #endif // StyleRule_h 238 #endif // StyleRule_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/RuleSet.h ('k') | sky/engine/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698