| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 void SMILTimeContainer::cancelAnimationFrame() | 295 void SMILTimeContainer::cancelAnimationFrame() |
| 296 { | 296 { |
| 297 m_frameSchedulingState = Idle; | 297 m_frameSchedulingState = Idle; |
| 298 m_wakeupTimer.stop(); | 298 m_wakeupTimer.stop(); |
| 299 } | 299 } |
| 300 | 300 |
| 301 void SMILTimeContainer::scheduleWakeUp(double delayTime, FrameSchedulingState fr
ameSchedulingState) | 301 void SMILTimeContainer::scheduleWakeUp(double delayTime, FrameSchedulingState fr
ameSchedulingState) |
| 302 { | 302 { |
| 303 ASSERT(frameSchedulingState == SynchronizeAnimations || frameSchedulingState
== FutureAnimationFrame); | 303 ASSERT(frameSchedulingState == SynchronizeAnimations || frameSchedulingState
== FutureAnimationFrame); |
| 304 m_wakeupTimer.startOneShot(delayTime, FROM_HERE); | 304 m_wakeupTimer.startOneShot(delayTime, BLINK_FROM_HERE); |
| 305 m_frameSchedulingState = frameSchedulingState; | 305 m_frameSchedulingState = frameSchedulingState; |
| 306 } | 306 } |
| 307 | 307 |
| 308 void SMILTimeContainer::wakeupTimerFired(Timer<SMILTimeContainer>*) | 308 void SMILTimeContainer::wakeupTimerFired(Timer<SMILTimeContainer>*) |
| 309 { | 309 { |
| 310 ASSERT(m_frameSchedulingState == SynchronizeAnimations || m_frameSchedulingS
tate == FutureAnimationFrame); | 310 ASSERT(m_frameSchedulingState == SynchronizeAnimations || m_frameSchedulingS
tate == FutureAnimationFrame); |
| 311 if (m_frameSchedulingState == FutureAnimationFrame) { | 311 if (m_frameSchedulingState == FutureAnimationFrame) { |
| 312 ASSERT(isTimelineRunning()); | 312 ASSERT(isTimelineRunning()); |
| 313 m_frameSchedulingState = Idle; | 313 m_frameSchedulingState = Idle; |
| 314 serviceOnNextFrame(); | 314 serviceOnNextFrame(); |
| 315 } else { | 315 } else { |
| 316 m_frameSchedulingState = Idle; | 316 m_frameSchedulingState = Idle; |
| 317 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); | 317 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); |
| 318 } | 318 } |
| 319 } | 319 } |
| 320 | 320 |
| 321 void SMILTimeContainer::scheduleAnimationPolicyTimer() | 321 void SMILTimeContainer::scheduleAnimationPolicyTimer() |
| 322 { | 322 { |
| 323 m_animationPolicyOnceTimer.startOneShot(animationPolicyOnceDuration, FROM_HE
RE); | 323 m_animationPolicyOnceTimer.startOneShot(animationPolicyOnceDuration, BLINK_F
ROM_HERE); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void SMILTimeContainer::cancelAnimationPolicyTimer() | 326 void SMILTimeContainer::cancelAnimationPolicyTimer() |
| 327 { | 327 { |
| 328 if (m_animationPolicyOnceTimer.isActive()) | 328 if (m_animationPolicyOnceTimer.isActive()) |
| 329 m_animationPolicyOnceTimer.stop(); | 329 m_animationPolicyOnceTimer.stop(); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void SMILTimeContainer::animationPolicyTimerFired(Timer<SMILTimeContainer>*) | 332 void SMILTimeContainer::animationPolicyTimerFired(Timer<SMILTimeContainer>*) |
| 333 { | 333 { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 DEFINE_TRACE(SMILTimeContainer) | 557 DEFINE_TRACE(SMILTimeContainer) |
| 558 { | 558 { |
| 559 #if ENABLE(OILPAN) | 559 #if ENABLE(OILPAN) |
| 560 visitor->trace(m_scheduledAnimations); | 560 visitor->trace(m_scheduledAnimations); |
| 561 #endif | 561 #endif |
| 562 visitor->trace(m_ownerSVGElement); | 562 visitor->trace(m_ownerSVGElement); |
| 563 } | 563 } |
| 564 | 564 |
| 565 } | 565 } |
| OLD | NEW |