| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 bool SMILTimeContainer::isStarted() const { | 156 bool SMILTimeContainer::isStarted() const { |
| 157 return m_started; | 157 return m_started; |
| 158 } | 158 } |
| 159 | 159 |
| 160 bool SMILTimeContainer::isTimelineRunning() const { | 160 bool SMILTimeContainer::isTimelineRunning() const { |
| 161 return isStarted() && !isPaused(); | 161 return isStarted() && !isPaused(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void SMILTimeContainer::start() { | 164 void SMILTimeContainer::start() { |
| 165 RELEASE_ASSERT(!isStarted()); | 165 CHECK(!isStarted()); |
| 166 | 166 |
| 167 if (!document().isActive()) | 167 if (!document().isActive()) |
| 168 return; | 168 return; |
| 169 | 169 |
| 170 if (!handleAnimationPolicy(RestartOnceTimerIfNotPaused)) | 170 if (!handleAnimationPolicy(RestartOnceTimerIfNotPaused)) |
| 171 return; | 171 return; |
| 172 | 172 |
| 173 // Sample the document timeline to get a time reference for the "presentation | 173 // Sample the document timeline to get a time reference for the "presentation |
| 174 // time". | 174 // time". |
| 175 synchronizeToDocumentTimeline(); | 175 synchronizeToDocumentTimeline(); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 void SMILTimeContainer::advanceFrameForTesting() { | 529 void SMILTimeContainer::advanceFrameForTesting() { |
| 530 setElapsed(elapsed() + initialFrameDelay); | 530 setElapsed(elapsed() + initialFrameDelay); |
| 531 } | 531 } |
| 532 | 532 |
| 533 DEFINE_TRACE(SMILTimeContainer) { | 533 DEFINE_TRACE(SMILTimeContainer) { |
| 534 visitor->trace(m_scheduledAnimations); | 534 visitor->trace(m_scheduledAnimations); |
| 535 visitor->trace(m_ownerSVGElement); | 535 visitor->trace(m_ownerSVGElement); |
| 536 } | 536 } |
| 537 | 537 |
| 538 } // namespace blink | 538 } // namespace blink |
| OLD | NEW |