OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class CSSRule; | 36 class CSSRule; |
37 class StyleRuleSupports; | 37 class StyleRuleSupports; |
38 | 38 |
39 class CSSSupportsRule FINAL : public CSSGroupingRule { | 39 class CSSSupportsRule FINAL : public CSSGroupingRule { |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<CSSSupportsRule> create(StyleRuleSupports* rul
e, CSSStyleSheet* sheet) | 41 static PassRefPtrWillBeRawPtr<CSSSupportsRule> create(StyleRuleSupports* rul
e, CSSStyleSheet* sheet) |
42 { | 42 { |
43 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSSupportsRu
le(rule, sheet)); | 43 return adoptRefWillBeRefCountedGarbageCollected(new CSSSupportsRule(rule
, sheet)); |
44 } | 44 } |
45 | 45 |
46 virtual ~CSSSupportsRule() { } | 46 virtual ~CSSSupportsRule() { } |
47 | 47 |
48 virtual CSSRule::Type type() const OVERRIDE { return SUPPORTS_RULE; } | 48 virtual CSSRule::Type type() const OVERRIDE { return SUPPORTS_RULE; } |
49 virtual String cssText() const OVERRIDE; | 49 virtual String cssText() const OVERRIDE; |
50 | 50 |
51 String conditionText() const; | 51 String conditionText() const; |
52 | 52 |
53 virtual void trace(Visitor* visitor) OVERRIDE { CSSGroupingRule::trace(visit
or); } | 53 virtual void trace(Visitor* visitor) OVERRIDE { CSSGroupingRule::trace(visit
or); } |
54 | 54 |
55 private: | 55 private: |
56 CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*); | 56 CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*); |
57 }; | 57 }; |
58 | 58 |
59 DEFINE_CSS_RULE_TYPE_CASTS(CSSSupportsRule, SUPPORTS_RULE); | 59 DEFINE_CSS_RULE_TYPE_CASTS(CSSSupportsRule, SUPPORTS_RULE); |
60 | 60 |
61 } // namespace WebCore | 61 } // namespace WebCore |
62 | 62 |
63 #endif // CSSSupportsRule_h | 63 #endif // CSSSupportsRule_h |
OLD | NEW |