| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 static void setFillMode(Timing&, String fillMode); | 65 static void setFillMode(Timing&, String fillMode); |
| 66 static void setIterationStart(Timing&, double iterationStart); | 66 static void setIterationStart(Timing&, double iterationStart); |
| 67 static void setIterationCount(Timing&, double iterationCount); | 67 static void setIterationCount(Timing&, double iterationCount); |
| 68 static void setIterationDuration(Timing&, double iterationDuration); | 68 static void setIterationDuration(Timing&, double iterationDuration); |
| 69 static void setPlaybackRate(Timing&, double playbackRate); | 69 static void setPlaybackRate(Timing&, double playbackRate); |
| 70 static void setPlaybackDirection(Timing&, String direction); | 70 static void setPlaybackDirection(Timing&, String direction); |
| 71 static void setTimingFunction(Timing&, String timingFunctionString); | 71 static void setTimingFunction(Timing&, String timingFunctionString); |
| 72 | 72 |
| 73 virtual bool isAnimation() const OVERRIDE { return true; } | 73 virtual bool isAnimation() const OVERRIDE { return true; } |
| 74 | 74 |
| 75 const Vector<RefPtr<Interpolation> >& activeInterpolations() const | 75 const WillBeHeapVector<RefPtrWillBeMember<Interpolation> >& activeInterpolat
ions() const |
| 76 { | 76 { |
| 77 ASSERT(m_activeInterpolations); | 77 ASSERT(m_activeInterpolations); |
| 78 return *m_activeInterpolations; | 78 return *m_activeInterpolations; |
| 79 } | 79 } |
| 80 | 80 |
| 81 bool affects(CSSPropertyID) const; | 81 bool affects(CSSPropertyID) const; |
| 82 const AnimationEffect* effect() const { return m_effect.get(); } | 82 const AnimationEffect* effect() const { return m_effect.get(); } |
| 83 Priority priority() const { return m_priority; } | 83 Priority priority() const { return m_priority; } |
| 84 Element* target() { return m_target.get(); } | 84 Element* target() { return m_target.get(); } |
| 85 | 85 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 static void populateTiming(Timing&, Dictionary); | 103 static void populateTiming(Timing&, Dictionary); |
| 104 | 104 |
| 105 Animation(PassRefPtr<Element>, PassRefPtrWillBeRawPtr<AnimationEffect>, cons
t Timing&, Priority, PassOwnPtr<EventDelegate>); | 105 Animation(PassRefPtr<Element>, PassRefPtrWillBeRawPtr<AnimationEffect>, cons
t Timing&, Priority, PassOwnPtr<EventDelegate>); |
| 106 | 106 |
| 107 RefPtr<Element> m_target; | 107 RefPtr<Element> m_target; |
| 108 RefPtrWillBePersistent<AnimationEffect> m_effect; | 108 RefPtrWillBePersistent<AnimationEffect> m_effect; |
| 109 | 109 |
| 110 bool m_activeInAnimationStack; | 110 bool m_activeInAnimationStack; |
| 111 OwnPtr<Vector<RefPtr<Interpolation> > > m_activeInterpolations; | 111 OwnPtrWillBePersistent<WillBeHeapVector<RefPtrWillBeMember<Interpolation> >
> m_activeInterpolations; |
| 112 | 112 |
| 113 Priority m_priority; | 113 Priority m_priority; |
| 114 | 114 |
| 115 Vector<int> m_compositorAnimationIds; | 115 Vector<int> m_compositorAnimationIds; |
| 116 | 116 |
| 117 friend class CSSAnimations; | 117 friend class CSSAnimations; |
| 118 friend class AnimationAnimationV8Test; | 118 friend class AnimationAnimationV8Test; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 DEFINE_TYPE_CASTS(Animation, TimedItem, timedItem, timedItem->isAnimation(), tim
edItem.isAnimation()); | 121 DEFINE_TYPE_CASTS(Animation, TimedItem, timedItem, timedItem->isAnimation(), tim
edItem.isAnimation()); |
| 122 | 122 |
| 123 } // namespace WebCore | 123 } // namespace WebCore |
| 124 | 124 |
| 125 #endif | 125 #endif |
| OLD | NEW |