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

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

Issue 1226293002: Fix virtual/override/final usage in Source/core/{animation,css,style}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSImportRule.h ('k') | Source/core/css/CSSKeyframesRule.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) 2007, 2008, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2012 Apple Inc. 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 * 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 copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 namespace blink { 32 namespace blink {
33 33
34 class CSSKeyframesRule; 34 class CSSKeyframesRule;
35 class CSSStyleDeclaration; 35 class CSSStyleDeclaration;
36 class ExceptionState; 36 class ExceptionState;
37 class KeyframeStyleRuleCSSStyleDeclaration; 37 class KeyframeStyleRuleCSSStyleDeclaration;
38 38
39 class CSSKeyframeRule final : public CSSRule { 39 class CSSKeyframeRule final : public CSSRule {
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 public: 41 public:
42 virtual ~CSSKeyframeRule(); 42 ~CSSKeyframeRule() override;
43 43
44 virtual String cssText() const override { return m_keyframe->cssText(); } 44 String cssText() const override { return m_keyframe->cssText(); }
45 virtual void reattach(StyleRuleBase*) override; 45 void reattach(StyleRuleBase*) override;
46 46
47 String keyText() const { return m_keyframe->keyText(); } 47 String keyText() const { return m_keyframe->keyText(); }
48 void setKeyText(const String&, ExceptionState&); 48 void setKeyText(const String&, ExceptionState&);
49 49
50 CSSStyleDeclaration* style() const; 50 CSSStyleDeclaration* style() const;
51 51
52 DECLARE_VIRTUAL_TRACE(); 52 DECLARE_VIRTUAL_TRACE();
53 53
54 private: 54 private:
55 CSSKeyframeRule(StyleRuleKeyframe*, CSSKeyframesRule* parent); 55 CSSKeyframeRule(StyleRuleKeyframe*, CSSKeyframesRule* parent);
56 56
57 virtual CSSRule::Type type() const override { return KEYFRAME_RULE; } 57 CSSRule::Type type() const override { return KEYFRAME_RULE; }
58 58
59 RefPtrWillBeMember<StyleRuleKeyframe> m_keyframe; 59 RefPtrWillBeMember<StyleRuleKeyframe> m_keyframe;
60 mutable RefPtrWillBeMember<KeyframeStyleRuleCSSStyleDeclaration> m_propertie sCSSOMWrapper; 60 mutable RefPtrWillBeMember<KeyframeStyleRuleCSSStyleDeclaration> m_propertie sCSSOMWrapper;
61 61
62 friend class CSSKeyframesRule; 62 friend class CSSKeyframesRule;
63 }; 63 };
64 64
65 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); 65 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // CSSKeyframeRule_h 69 #endif // CSSKeyframeRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSImportRule.h ('k') | Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698