| 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 29 matching lines...) Expand all Loading... |
| 40 class TimingFunction; | 40 class TimingFunction; |
| 41 | 41 |
| 42 class KeyframeValue { | 42 class KeyframeValue { |
| 43 public: | 43 public: |
| 44 KeyframeValue(double key, PassRefPtr<RenderStyle> style) | 44 KeyframeValue(double key, PassRefPtr<RenderStyle> style) |
| 45 : m_key(key) | 45 : m_key(key) |
| 46 , m_style(style) | 46 , m_style(style) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void addProperties(const StylePropertySet*); | |
| 51 void addProperty(CSSPropertyID prop) { m_properties.add(prop); } | 50 void addProperty(CSSPropertyID prop) { m_properties.add(prop); } |
| 52 bool containsProperty(CSSPropertyID prop) const { return m_properties.contai
ns(prop); } | 51 bool containsProperty(CSSPropertyID prop) const { return m_properties.contai
ns(prop); } |
| 53 const HashSet<CSSPropertyID>& properties() const { return m_properties; } | 52 const HashSet<CSSPropertyID>& properties() const { return m_properties; } |
| 54 | 53 |
| 55 double key() const { return m_key; } | 54 double key() const { return m_key; } |
| 56 void setKey(double key) { m_key = key; } | 55 void setKey(double key) { m_key = key; } |
| 57 | 56 |
| 58 const RenderStyle* style() const { return m_style.get(); } | 57 const RenderStyle* style() const { return m_style.get(); } |
| 59 void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; } | 58 void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; } |
| 60 | 59 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 91 |
| 93 private: | 92 private: |
| 94 AtomicString m_animationName; | 93 AtomicString m_animationName; |
| 95 Vector<KeyframeValue> m_keyframes; // Kept sorted by key. | 94 Vector<KeyframeValue> m_keyframes; // Kept sorted by key. |
| 96 HashSet<CSSPropertyID> m_properties; // The properties being animated. | 95 HashSet<CSSPropertyID> m_properties; // The properties being animated. |
| 97 }; | 96 }; |
| 98 | 97 |
| 99 } // namespace WebCore | 98 } // namespace WebCore |
| 100 | 99 |
| 101 #endif // KeyframeList_h | 100 #endif // KeyframeList_h |
| OLD | NEW |