| 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 CSSAnimationData_h | 5 #ifndef CSSAnimationData_h |
| 6 #define CSSAnimationData_h | 6 #define CSSAnimationData_h |
| 7 | 7 |
| 8 #include "core/animation/Timing.h" | 8 #include "core/animation/Timing.h" |
| 9 #include "core/animation/css/CSSTimingData.h" | 9 #include "core/animation/css/CSSTimingData.h" |
| 10 #include "core/rendering/style/RenderStyleConstants.h" | 10 #include "core/rendering/style/RenderStyleConstants.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CSSAnimationData final : public CSSTimingData { | 14 class CSSAnimationData final : public CSSTimingData { |
| 15 public: | 15 public: |
| 16 static PassOwnPtrWillBeRawPtr<CSSAnimationData> create() | 16 static PassOwnPtr<CSSAnimationData> create() |
| 17 { | 17 { |
| 18 return adoptPtrWillBeNoop(new CSSAnimationData); | 18 return adoptPtr(new CSSAnimationData); |
| 19 } | 19 } |
| 20 | 20 |
| 21 static PassOwnPtrWillBeRawPtr<CSSAnimationData> create(const CSSAnimationDat
a& animationData) | 21 static PassOwnPtr<CSSAnimationData> create(const CSSAnimationData& animation
Data) |
| 22 { | 22 { |
| 23 return adoptPtrWillBeNoop(new CSSAnimationData(animationData)); | 23 return adoptPtr(new CSSAnimationData(animationData)); |
| 24 } | 24 } |
| 25 | 25 |
| 26 bool animationsMatchForStyleRecalc(const CSSAnimationData& other) const; | 26 bool animationsMatchForStyleRecalc(const CSSAnimationData& other) const; |
| 27 | 27 |
| 28 Timing convertToTiming(size_t index) const; | 28 Timing convertToTiming(size_t index) const; |
| 29 | 29 |
| 30 const Vector<AtomicString>& nameList() const { return m_nameList; } | 30 const Vector<AtomicString>& nameList() const { return m_nameList; } |
| 31 const Vector<double>& iterationCountList() const { return m_iterationCountLi
st; } | 31 const Vector<double>& iterationCountList() const { return m_iterationCountLi
st; } |
| 32 const Vector<Timing::PlaybackDirection>& directionList() const { return m_di
rectionList; } | 32 const Vector<Timing::PlaybackDirection>& directionList() const { return m_di
rectionList; } |
| 33 const Vector<Timing::FillMode>& fillModeList() const { return m_fillModeList
; } | 33 const Vector<Timing::FillMode>& fillModeList() const { return m_fillModeList
; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 52 Vector<AtomicString> m_nameList; | 52 Vector<AtomicString> m_nameList; |
| 53 Vector<double> m_iterationCountList; | 53 Vector<double> m_iterationCountList; |
| 54 Vector<Timing::PlaybackDirection> m_directionList; | 54 Vector<Timing::PlaybackDirection> m_directionList; |
| 55 Vector<Timing::FillMode> m_fillModeList; | 55 Vector<Timing::FillMode> m_fillModeList; |
| 56 Vector<EAnimPlayState> m_playStateList; | 56 Vector<EAnimPlayState> m_playStateList; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // CSSAnimationData_h | 61 #endif // CSSAnimationData_h |
| OLD | NEW |