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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } | 402 } |
403 | 403 |
404 void SMILTimeContainer::serviceOnNextFrame() | 404 void SMILTimeContainer::serviceOnNextFrame() |
405 { | 405 { |
406 if (document().view()) { | 406 if (document().view()) { |
407 document().view()->scheduleAnimation(); | 407 document().view()->scheduleAnimation(); |
408 m_frameSchedulingState = AnimationFrame; | 408 m_frameSchedulingState = AnimationFrame; |
409 } | 409 } |
410 } | 410 } |
411 | 411 |
412 void SMILTimeContainer::serviceAnimations(double monotonicAnimationStartTime) | 412 void SMILTimeContainer::serviceAnimations() |
413 { | 413 { |
414 if (m_frameSchedulingState != AnimationFrame) | 414 if (m_frameSchedulingState != AnimationFrame) |
415 return; | 415 return; |
416 | 416 |
417 m_frameSchedulingState = Idle; | 417 m_frameSchedulingState = Idle; |
418 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); | 418 updateAnimationsAndScheduleFrameIfNeeded(elapsed()); |
419 } | 419 } |
420 | 420 |
421 void SMILTimeContainer::updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapse
d, bool seekToTime) | 421 void SMILTimeContainer::updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapse
d, bool seekToTime) |
422 { | 422 { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 setElapsed(elapsed().value() + initialFrameDelay); | 536 setElapsed(elapsed().value() + initialFrameDelay); |
537 } | 537 } |
538 | 538 |
539 DEFINE_TRACE(SMILTimeContainer) | 539 DEFINE_TRACE(SMILTimeContainer) |
540 { | 540 { |
541 visitor->trace(m_scheduledAnimations); | 541 visitor->trace(m_scheduledAnimations); |
542 visitor->trace(m_ownerSVGElement); | 542 visitor->trace(m_ownerSVGElement); |
543 } | 543 } |
544 | 544 |
545 } // namespace blink | 545 } // namespace blink |
OLD | NEW |