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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 AnimationNode::AnimationNode(const Timing& timing, PassOwnPtrWillBeRawPtr<EventD
elegate> eventDelegate) | 54 AnimationNode::AnimationNode(const Timing& timing, PassOwnPtrWillBeRawPtr<EventD
elegate> eventDelegate) |
55 : m_parent(nullptr) | 55 : m_parent(nullptr) |
56 , m_startTime(0) | 56 , m_startTime(0) |
57 , m_player(nullptr) | 57 , m_player(nullptr) |
58 , m_timing(timing) | 58 , m_timing(timing) |
59 , m_eventDelegate(eventDelegate) | 59 , m_eventDelegate(eventDelegate) |
60 , m_calculated() | 60 , m_calculated() |
61 , m_needsUpdate(true) | 61 , m_needsUpdate(true) |
62 , m_lastUpdateTime(nullValue()) | 62 , m_lastUpdateTime(nullValue()) |
| 63 , m_styleChangeCounter(0) |
63 { | 64 { |
64 m_timing.assertValid(); | 65 m_timing.assertValid(); |
65 } | 66 } |
66 | 67 |
67 double AnimationNode::iterationDuration() const | 68 double AnimationNode::iterationDuration() const |
68 { | 69 { |
69 double result = std::isnan(m_timing.iterationDuration) ? intrinsicIterationD
uration() : m_timing.iterationDuration; | 70 double result = std::isnan(m_timing.iterationDuration) ? intrinsicIterationD
uration() : m_timing.iterationDuration; |
70 ASSERT(result >= 0); | 71 ASSERT(result >= 0); |
71 return result; | 72 return result; |
72 } | 73 } |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 } | 228 } |
228 | 229 |
229 void AnimationNode::trace(Visitor* visitor) | 230 void AnimationNode::trace(Visitor* visitor) |
230 { | 231 { |
231 visitor->trace(m_parent); | 232 visitor->trace(m_parent); |
232 visitor->trace(m_player); | 233 visitor->trace(m_player); |
233 visitor->trace(m_eventDelegate); | 234 visitor->trace(m_eventDelegate); |
234 } | 235 } |
235 | 236 |
236 } // namespace blink | 237 } // namespace blink |
OLD | NEW |