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 14 matching lines...) Expand all Loading... |
25 bool setKeyText(const String&); | 25 bool setKeyText(const String&); |
26 | 26 |
27 // Used by StyleResolver. | 27 // Used by StyleResolver. |
28 const Vector<double>& keys() const; | 28 const Vector<double>& keys() const; |
29 | 29 |
30 const StylePropertySet& properties() const { return *m_properties; } | 30 const StylePropertySet& properties() const { return *m_properties; } |
31 MutableStylePropertySet& mutableProperties(); | 31 MutableStylePropertySet& mutableProperties(); |
32 | 32 |
33 String cssText() const; | 33 String cssText() const; |
34 | 34 |
| 35 void purgeMemory(); |
| 36 |
35 DECLARE_TRACE_AFTER_DISPATCH(); | 37 DECLARE_TRACE_AFTER_DISPATCH(); |
36 | 38 |
37 private: | 39 private: |
38 StyleRuleKeyframe(PassOwnPtr<Vector<double>>, PassRefPtrWillBeRawPtr<StylePr
opertySet>); | 40 StyleRuleKeyframe(PassOwnPtr<Vector<double>>, PassRefPtrWillBeRawPtr<StylePr
opertySet>); |
39 | 41 |
40 RefPtrWillBeMember<StylePropertySet> m_properties; | 42 RefPtrWillBeMember<StylePropertySet> m_properties; |
41 Vector<double> m_keys; | 43 Vector<double> m_keys; |
42 }; | 44 }; |
43 | 45 |
44 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe); | 46 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe); |
45 | 47 |
46 } // namespace blink | 48 } // namespace blink |
47 | 49 |
48 #endif // StyleRuleKeyframe_h | 50 #endif // StyleRuleKeyframe_h |
OLD | NEW |