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

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

Issue 719833002: Clean up virtual functions in css/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove some changes 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 | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSFontFaceRule.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 * 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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSFontFaceRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698