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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 if (timeline) { | 71 if (timeline) { |
72 timeline->animationAttached(*animation); | 72 timeline->animationAttached(*animation); |
73 animation->attachCompositorTimeline(); | 73 animation->attachCompositorTimeline(); |
74 } | 74 } |
75 | 75 |
76 return animation; | 76 return animation; |
77 } | 77 } |
78 | 78 |
79 Animation::Animation(ExecutionContext* executionContext, AnimationTimeline& time
line, AnimationEffect* content) | 79 Animation::Animation(ExecutionContext* executionContext, AnimationTimeline& time
line, AnimationEffect* content) |
80 : ActiveDOMObject(executionContext) | 80 : ActiveScriptWrappable(this) |
| 81 , ActiveDOMObject(executionContext) |
81 , m_playState(Idle) | 82 , m_playState(Idle) |
82 , m_playbackRate(1) | 83 , m_playbackRate(1) |
83 , m_startTime(nullValue()) | 84 , m_startTime(nullValue()) |
84 , m_holdTime(0) | 85 , m_holdTime(0) |
85 , m_sequenceNumber(nextSequenceNumber()) | 86 , m_sequenceNumber(nextSequenceNumber()) |
86 , m_content(content) | 87 , m_content(content) |
87 , m_timeline(&timeline) | 88 , m_timeline(&timeline) |
88 , m_paused(false) | 89 , m_paused(false) |
89 , m_held(false) | 90 , m_held(false) |
90 , m_isPausedForTesting(false) | 91 , m_isPausedForTesting(false) |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 visitor->trace(m_timeline); | 1082 visitor->trace(m_timeline); |
1082 visitor->trace(m_pendingFinishedEvent); | 1083 visitor->trace(m_pendingFinishedEvent); |
1083 visitor->trace(m_pendingCancelledEvent); | 1084 visitor->trace(m_pendingCancelledEvent); |
1084 visitor->trace(m_finishedPromise); | 1085 visitor->trace(m_finishedPromise); |
1085 visitor->trace(m_readyPromise); | 1086 visitor->trace(m_readyPromise); |
1086 RefCountedGarbageCollectedEventTargetWithInlineData<Animation>::trace(visito
r); | 1087 RefCountedGarbageCollectedEventTargetWithInlineData<Animation>::trace(visito
r); |
1087 ActiveDOMObject::trace(visitor); | 1088 ActiveDOMObject::trace(visitor); |
1088 } | 1089 } |
1089 | 1090 |
1090 } // namespace blink | 1091 } // namespace blink |
OLD | NEW |