OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static TimingFunction* timingFunction(const RenderStyle*, const AtomicString
& name); | 61 static TimingFunction* timingFunction(const RenderStyle*, const AtomicString
& name); |
62 | 62 |
63 private: | 63 private: |
64 double m_key; | 64 double m_key; |
65 HashSet<CSSPropertyID> m_properties; // The properties specified in this key
frame. | 65 HashSet<CSSPropertyID> m_properties; // The properties specified in this key
frame. |
66 RefPtr<RenderStyle> m_style; | 66 RefPtr<RenderStyle> m_style; |
67 }; | 67 }; |
68 | 68 |
69 class KeyframeList { | 69 class KeyframeList { |
70 public: | 70 public: |
71 KeyframeList(RenderObject*, const AtomicString& animationName) | 71 KeyframeList(RenderObject&, const AtomicString& animationName) |
72 : m_animationName(animationName) | 72 : m_animationName(animationName) |
73 { | 73 { |
74 insert(KeyframeValue(0, 0)); | 74 insert(KeyframeValue(0, 0)); |
75 insert(KeyframeValue(1, 0)); | 75 insert(KeyframeValue(1, 0)); |
76 } | 76 } |
77 ~KeyframeList(); | 77 ~KeyframeList(); |
78 | 78 |
79 const AtomicString& animationName() const { return m_animationName; } | 79 const AtomicString& animationName() const { return m_animationName; } |
80 | 80 |
81 void insert(const KeyframeValue& keyframe); | 81 void insert(const KeyframeValue& keyframe); |
(...skipping 10 matching lines...) Expand all Loading... |
92 | 92 |
93 private: | 93 private: |
94 AtomicString m_animationName; | 94 AtomicString m_animationName; |
95 Vector<KeyframeValue> m_keyframes; // Kept sorted by key. | 95 Vector<KeyframeValue> m_keyframes; // Kept sorted by key. |
96 HashSet<CSSPropertyID> m_properties; // The properties being animated. | 96 HashSet<CSSPropertyID> m_properties; // The properties being animated. |
97 }; | 97 }; |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif // KeyframeList_h | 101 #endif // KeyframeList_h |
OLD | NEW |