| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class Node; | 43 class Node; |
| 44 class RenderObject; | 44 class RenderObject; |
| 45 class RenderStyle; | 45 class RenderStyle; |
| 46 class TimingFunction; | 46 class TimingFunction; |
| 47 | 47 |
| 48 class AnimationBase : public RefCounted<AnimationBase> { | 48 class AnimationBase : public RefCounted<AnimationBase> { |
| 49 friend class CompositeAnimation; | 49 friend class CompositeAnimation; |
| 50 friend class CSSPropertyAnimation; | 50 friend class CSSPropertyAnimation; |
| 51 | 51 |
| 52 public: | 52 public: |
| 53 AnimationBase(const CSSAnimationData* transition, RenderObject* renderer, Co
mpositeAnimation* compAnim); | 53 AnimationBase(const CSSAnimationData* transition, RenderObject& renderer, Co
mpositeAnimation* compAnim); |
| 54 virtual ~AnimationBase() { } | 54 virtual ~AnimationBase() { } |
| 55 | 55 |
| 56 RenderObject* renderer() const { return m_object; } | 56 RenderObject* renderer() const { return m_object; } |
| 57 void clear() | 57 void clear() |
| 58 { | 58 { |
| 59 endAnimation(); | 59 endAnimation(); |
| 60 m_object = 0; | 60 m_object = 0; |
| 61 m_compAnim = 0; | 61 m_compAnim = 0; |
| 62 } | 62 } |
| 63 | 63 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 RenderObject* m_object; | 220 RenderObject* m_object; |
| 221 | 221 |
| 222 RefPtr<CSSAnimationData> m_animation; | 222 RefPtr<CSSAnimationData> m_animation; |
| 223 CompositeAnimation* m_compAnim; | 223 CompositeAnimation* m_compAnim; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace WebCore | 226 } // namespace WebCore |
| 227 | 227 |
| 228 #endif // AnimationBase_h | 228 #endif // AnimationBase_h |
| OLD | NEW |