| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void begin(); | 62 void begin(); |
| 63 void pause(); | 63 void pause(); |
| 64 void resume(); | 64 void resume(); |
| 65 void setElapsed(SMILTime); | 65 void setElapsed(SMILTime); |
| 66 | 66 |
| 67 void serviceAnimations(double monotonicAnimationStartTime); | 67 void serviceAnimations(double monotonicAnimationStartTime); |
| 68 bool hasAnimations() const; | 68 bool hasAnimations() const; |
| 69 | 69 |
| 70 void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty = true; } | 70 void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty = true; } |
| 71 | 71 |
| 72 // Advance the animation timeline a single frame. |
| 73 void advanceFrameForTesting(); |
| 74 |
| 72 DECLARE_TRACE(); | 75 DECLARE_TRACE(); |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 explicit SMILTimeContainer(SVGSVGElement& owner); | 78 explicit SMILTimeContainer(SVGSVGElement& owner); |
| 76 | 79 |
| 77 enum FrameSchedulingState { | 80 enum FrameSchedulingState { |
| 78 // No frame scheduled. | 81 // No frame scheduled. |
| 79 Idle, | 82 Idle, |
| 80 // Scheduled a wakeup to update the animation values. | 83 // Scheduled a wakeup to update the animation values. |
| 81 SynchronizeAnimations, | 84 SynchronizeAnimations, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 138 |
| 136 RawPtrWillBeMember<SVGSVGElement> m_ownerSVGElement; | 139 RawPtrWillBeMember<SVGSVGElement> m_ownerSVGElement; |
| 137 | 140 |
| 138 #if ENABLE(ASSERT) | 141 #if ENABLE(ASSERT) |
| 139 bool m_preventScheduledAnimationsChanges; | 142 bool m_preventScheduledAnimationsChanges; |
| 140 #endif | 143 #endif |
| 141 }; | 144 }; |
| 142 } | 145 } |
| 143 | 146 |
| 144 #endif // SMILTimeContainer_h | 147 #endif // SMILTimeContainer_h |
| OLD | NEW |