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

Side by Side Diff: Source/core/css/CSSKeyframeRule.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/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // These are both calculated lazily. Either one can be set, which invalidate s the other. 72 // These are both calculated lazily. Either one can be set, which invalidate s the other.
73 mutable String m_keyText; 73 mutable String m_keyText;
74 mutable OwnPtr<Vector<double> > m_keys; 74 mutable OwnPtr<Vector<double> > m_keys;
75 }; 75 };
76 76
77 class CSSKeyframeRule final : public CSSRule { 77 class CSSKeyframeRule final : public CSSRule {
78 DEFINE_WRAPPERTYPEINFO(); 78 DEFINE_WRAPPERTYPEINFO();
79 public: 79 public:
80 virtual ~CSSKeyframeRule(); 80 virtual ~CSSKeyframeRule();
81 81
82 virtual CSSRule::Type type() const override { return KEYFRAME_RULE; }
83 virtual String cssText() const override { return m_keyframe->cssText(); } 82 virtual String cssText() const override { return m_keyframe->cssText(); }
84 virtual void reattach(StyleRuleBase*) override; 83 virtual void reattach(StyleRuleBase*) override;
85 84
86 String keyText() const { return m_keyframe->keyText(); } 85 String keyText() const { return m_keyframe->keyText(); }
87 void setKeyText(const String& s) { m_keyframe->setKeyText(s); } 86 void setKeyText(const String& s) { m_keyframe->setKeyText(s); }
88 87
89 CSSStyleDeclaration* style() const; 88 CSSStyleDeclaration* style() const;
90 89
91 virtual void trace(Visitor*) override; 90 virtual void trace(Visitor*) override;
92 91
93 private: 92 private:
94 CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent); 93 CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent);
95 94
95 virtual CSSRule::Type type() const override { return KEYFRAME_RULE; }
96
96 RefPtrWillBeMember<StyleKeyframe> m_keyframe; 97 RefPtrWillBeMember<StyleKeyframe> m_keyframe;
97 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr apper; 98 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr apper;
98 99
99 friend class CSSKeyframesRule; 100 friend class CSSKeyframesRule;
100 }; 101 };
101 102
102 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); 103 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // CSSKeyframeRule_h 107 #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