OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class CSSFilterRule final : public CSSRule { | 42 class CSSFilterRule final : public CSSRule { |
43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
44 public: | 44 public: |
45 static PassRefPtrWillBeRawPtr<CSSFilterRule> create(StyleRuleFilter* rule, C
SSStyleSheet* sheet) | 45 static PassRefPtrWillBeRawPtr<CSSFilterRule> create(StyleRuleFilter* rule, C
SSStyleSheet* sheet) |
46 { | 46 { |
47 return adoptRefWillBeNoop(new CSSFilterRule(rule, sheet)); | 47 return adoptRefWillBeNoop(new CSSFilterRule(rule, sheet)); |
48 } | 48 } |
49 | 49 |
50 virtual ~CSSFilterRule(); | 50 virtual ~CSSFilterRule(); |
51 | 51 |
52 virtual CSSRule::Type type() const override { return WEBKIT_FILTER_RULE; } | |
53 virtual String cssText() const override; | 52 virtual String cssText() const override; |
54 virtual void reattach(StyleRuleBase*) override; | 53 virtual void reattach(StyleRuleBase*) override; |
55 | 54 |
56 CSSStyleDeclaration* style() const; | 55 CSSStyleDeclaration* style() const; |
57 | 56 |
58 virtual void trace(Visitor*) override; | 57 virtual void trace(Visitor*) override; |
59 | 58 |
60 private: | 59 private: |
61 CSSFilterRule(StyleRuleFilter*, CSSStyleSheet* parent); | 60 CSSFilterRule(StyleRuleFilter*, CSSStyleSheet* parent); |
62 | 61 |
| 62 virtual CSSRule::Type type() const override { return WEBKIT_FILTER_RULE; } |
| 63 |
63 RefPtrWillBeMember<StyleRuleFilter> m_filterRule; | 64 RefPtrWillBeMember<StyleRuleFilter> m_filterRule; |
64 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr
apper; | 65 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr
apper; |
65 }; | 66 }; |
66 | 67 |
67 DEFINE_CSS_RULE_TYPE_CASTS(CSSFilterRule, WEBKIT_FILTER_RULE); | 68 DEFINE_CSS_RULE_TYPE_CASTS(CSSFilterRule, WEBKIT_FILTER_RULE); |
68 | 69 |
69 } | 70 } |
70 | 71 |
71 | 72 |
72 #endif // CSSFilterRule_h | 73 #endif // CSSFilterRule_h |
OLD | NEW |