| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 void SMILTimeContainer::animationPolicyTimerFired(TimerBase*) { | 303 void SMILTimeContainer::animationPolicyTimerFired(TimerBase*) { |
| 304 pause(); | 304 pause(); |
| 305 } | 305 } |
| 306 | 306 |
| 307 ImageAnimationPolicy SMILTimeContainer::animationPolicy() const { | 307 ImageAnimationPolicy SMILTimeContainer::animationPolicy() const { |
| 308 Settings* settings = document().settings(); | 308 Settings* settings = document().settings(); |
| 309 if (!settings) | 309 if (!settings) |
| 310 return ImageAnimationPolicyAllowed; | 310 return ImageAnimationPolicyAllowed; |
| 311 | 311 |
| 312 return settings->imageAnimationPolicy(); | 312 return settings->getImageAnimationPolicy(); |
| 313 } | 313 } |
| 314 | 314 |
| 315 bool SMILTimeContainer::handleAnimationPolicy( | 315 bool SMILTimeContainer::handleAnimationPolicy( |
| 316 AnimationPolicyOnceAction onceAction) { | 316 AnimationPolicyOnceAction onceAction) { |
| 317 ImageAnimationPolicy policy = animationPolicy(); | 317 ImageAnimationPolicy policy = animationPolicy(); |
| 318 // If the animation policy is "none", control is not allowed. | 318 // If the animation policy is "none", control is not allowed. |
| 319 // returns false to exit flow. | 319 // returns false to exit flow. |
| 320 if (policy == ImageAnimationPolicyNoAnimation) | 320 if (policy == ImageAnimationPolicyNoAnimation) |
| 321 return false; | 321 return false; |
| 322 // If the animation policy is "once", | 322 // If the animation policy is "once", |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 void SMILTimeContainer::advanceFrameForTesting() { | 530 void SMILTimeContainer::advanceFrameForTesting() { |
| 531 setElapsed(elapsed() + initialFrameDelay); | 531 setElapsed(elapsed() + initialFrameDelay); |
| 532 } | 532 } |
| 533 | 533 |
| 534 DEFINE_TRACE(SMILTimeContainer) { | 534 DEFINE_TRACE(SMILTimeContainer) { |
| 535 visitor->trace(m_scheduledAnimations); | 535 visitor->trace(m_scheduledAnimations); |
| 536 visitor->trace(m_ownerSVGElement); | 536 visitor->trace(m_ownerSVGElement); |
| 537 } | 537 } |
| 538 | 538 |
| 539 } // namespace blink | 539 } // namespace blink |
| OLD | NEW |