OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef StyleRuleKeyframe_h | 5 #ifndef StyleRuleKeyframe_h |
6 #define StyleRuleKeyframe_h | 6 #define StyleRuleKeyframe_h |
7 | 7 |
8 #include "core/css/StyleRule.h" | 8 #include "core/css/StyleRule.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 18 matching lines...) Expand all Loading... |
29 const Vector<double>& keys() const; | 29 const Vector<double>& keys() const; |
30 // Used by BisonCSSParser when constructing a new StyleRuleKeyframe. | 30 // Used by BisonCSSParser when constructing a new StyleRuleKeyframe. |
31 void setKeys(PassOwnPtr<Vector<double> >); | 31 void setKeys(PassOwnPtr<Vector<double> >); |
32 | 32 |
33 const StylePropertySet& properties() const { return *m_properties; } | 33 const StylePropertySet& properties() const { return *m_properties; } |
34 MutableStylePropertySet& mutableProperties(); | 34 MutableStylePropertySet& mutableProperties(); |
35 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>); | 35 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>); |
36 | 36 |
37 String cssText() const; | 37 String cssText() const; |
38 | 38 |
39 void traceAfterDispatch(Visitor*); | 39 DECLARE_TRACE_AFTER_DISPATCH(); |
40 | 40 |
41 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); | 41 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); |
42 | 42 |
43 private: | 43 private: |
44 StyleRuleKeyframe(); | 44 StyleRuleKeyframe(); |
45 | 45 |
46 RefPtrWillBeMember<StylePropertySet> m_properties; | 46 RefPtrWillBeMember<StylePropertySet> m_properties; |
47 Vector<double> m_keys; | 47 Vector<double> m_keys; |
48 }; | 48 }; |
49 | 49 |
50 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe); | 50 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe); |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // StyleRuleKeyframe_h | 54 #endif // StyleRuleKeyframe_h |
OLD | NEW |