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 CSSTimingData_h | 5 #ifndef CSSTimingData_h |
6 #define CSSTimingData_h | 6 #define CSSTimingData_h |
7 | 7 |
8 #include "platform/animation/TimingFunction.h" | 8 #include "platform/animation/TimingFunction.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Allocator.h" |
10 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 struct Timing; | 15 struct Timing; |
15 | 16 |
16 class CSSTimingData { | 17 class CSSTimingData { |
| 18 WTF_MAKE_FAST_ALLOCATED(CSSTimingData); |
17 public: | 19 public: |
18 ~CSSTimingData() { } | 20 ~CSSTimingData() { } |
19 | 21 |
20 const Vector<double>& delayList() const { return m_delayList; } | 22 const Vector<double>& delayList() const { return m_delayList; } |
21 const Vector<double>& durationList() const { return m_durationList; } | 23 const Vector<double>& durationList() const { return m_durationList; } |
22 const Vector<RefPtr<TimingFunction>>& timingFunctionList() const { return m_
timingFunctionList; } | 24 const Vector<RefPtr<TimingFunction>>& timingFunctionList() const { return m_
timingFunctionList; } |
23 | 25 |
24 Vector<double>& delayList() { return m_delayList; } | 26 Vector<double>& delayList() { return m_delayList; } |
25 Vector<double>& durationList() { return m_durationList; } | 27 Vector<double>& durationList() { return m_durationList; } |
26 Vector<RefPtr<TimingFunction>>& timingFunctionList() { return m_timingFuncti
onList; } | 28 Vector<RefPtr<TimingFunction>>& timingFunctionList() { return m_timingFuncti
onList; } |
(...skipping 12 matching lines...) Expand all Loading... |
39 | 41 |
40 private: | 42 private: |
41 Vector<double> m_delayList; | 43 Vector<double> m_delayList; |
42 Vector<double> m_durationList; | 44 Vector<double> m_durationList; |
43 Vector<RefPtr<TimingFunction>> m_timingFunctionList; | 45 Vector<RefPtr<TimingFunction>> m_timingFunctionList; |
44 }; | 46 }; |
45 | 47 |
46 } // namespace blink | 48 } // namespace blink |
47 | 49 |
48 #endif // CSSTimingData_h | 50 #endif // CSSTimingData_h |
OLD | NEW |