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

Side by Side Diff: Source/core/css/CSSSupportsRule.h

Issue 541383003: Clean up forward declarations in Source/core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « Source/core/css/CSSStyleSheet.h ('k') | Source/core/css/CSSValue.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 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved. 1 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved.
2 * 2 *
3 * Redistribution and use in source and binary forms, with or without 3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are 4 * modification, are permitted provided that the following conditions are
5 * met: 5 * met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above 9 * 2. Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer in 10 * copyright notice, this list of conditions and the following disclaimer in
(...skipping 15 matching lines...) Expand all
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef CSSSupportsRule_h 29 #ifndef CSSSupportsRule_h
30 #define CSSSupportsRule_h 30 #define CSSSupportsRule_h
31 31
32 #include "core/css/CSSGroupingRule.h" 32 #include "core/css/CSSGroupingRule.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class CSSRule;
37 class StyleRuleSupports; 36 class StyleRuleSupports;
38 37
39 class CSSSupportsRule FINAL : public CSSGroupingRule { 38 class CSSSupportsRule FINAL : public CSSGroupingRule {
40 public: 39 public:
41 static PassRefPtrWillBeRawPtr<CSSSupportsRule> create(StyleRuleSupports* rul e, CSSStyleSheet* sheet) 40 static PassRefPtrWillBeRawPtr<CSSSupportsRule> create(StyleRuleSupports* rul e, CSSStyleSheet* sheet)
42 { 41 {
43 return adoptRefWillBeNoop(new CSSSupportsRule(rule, sheet)); 42 return adoptRefWillBeNoop(new CSSSupportsRule(rule, sheet));
44 } 43 }
45 44
46 virtual ~CSSSupportsRule() { } 45 virtual ~CSSSupportsRule() { }
47 46
48 virtual CSSRule::Type type() const OVERRIDE { return SUPPORTS_RULE; } 47 virtual CSSRule::Type type() const OVERRIDE { return SUPPORTS_RULE; }
49 virtual String cssText() const OVERRIDE; 48 virtual String cssText() const OVERRIDE;
50 49
51 String conditionText() const; 50 String conditionText() const;
52 51
53 virtual void trace(Visitor* visitor) OVERRIDE { CSSGroupingRule::trace(visit or); } 52 virtual void trace(Visitor* visitor) OVERRIDE { CSSGroupingRule::trace(visit or); }
54 53
55 private: 54 private:
56 CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*); 55 CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*);
57 }; 56 };
58 57
59 DEFINE_CSS_RULE_TYPE_CASTS(CSSSupportsRule, SUPPORTS_RULE); 58 DEFINE_CSS_RULE_TYPE_CASTS(CSSSupportsRule, SUPPORTS_RULE);
60 59
61 } // namespace blink 60 } // namespace blink
62 61
63 #endif // CSSSupportsRule_h 62 #endif // CSSSupportsRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleSheet.h ('k') | Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698