Changeset 117216 in webkit
- Timestamp:
- May 15, 2012 9:49:17 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117208 r117216 1 2012-05-15 Igor Oliveira <igor.o@sisa.samsung.com> 2 3 regression(111639): Issue with simultaneous CSS animations 4 https://bugs.webkit.org/show_bug.cgi?id=85929 5 6 Reviewed by Dean Jackson. 7 8 * animations/fill-mode-forwards-expected.txt: Added. 9 * animations/fill-mode-forwards.html: Added. 10 1 11 2012-05-15 Alexis Menard <alexis.menard@openbossa.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r117214 r117216 1 2012-05-15 Igor Oliveira <igor.o@sisa.samsung.com> 2 3 regression(111639): Issue with simultaneous CSS animations 4 https://bugs.webkit.org/show_bug.cgi?id=85929 5 6 Currently, previousTimeToNextService is just saving the previous CompositeAnimation::timeToNextService 7 for AnimationControllerPrivate::updateAnimationTimerForRenderer, however CompositeAnimation::timeToNextService 8 is also called and used by updateAnimationTimer. Make sure we save the existing timeToNextService from 9 both places, updateAnimationTimerForRenderer and updateAnimationTimer. 10 11 Reviewed by Dean Jackson. 12 13 Test: animations/fill-mode-forwards.html 14 15 * page/animation/AnimationController.cpp: 16 (WebCore::AnimationControllerPrivate::AnimationControllerPrivate): 17 (WebCore::AnimationControllerPrivate::updateAnimationTimerForRenderer): 18 (WebCore::AnimationControllerPrivate::updateAnimationTimer): 19 * page/animation/AnimationControllerPrivate.h: 20 (AnimationControllerPrivate): 21 1 22 2012-05-15 Tien-Ren Chen <trchen@chromium.org> 2 23 -
trunk/Source/WebCore/page/animation/AnimationController.cpp
r115581 r117216 58 58 , m_animationsWaitingForStartTimeResponse() 59 59 , m_waitingForAsyncStartNotification(false) 60 , m_previousTimeToNextService(0) 60 61 { 61 62 } … … 119 120 void AnimationControllerPrivate::updateAnimationTimerForRenderer(RenderObject* renderer) 120 121 { 121 static double previousTimeToNextService = 0;122 122 double timeToNextService = 0; 123 123 … … 127 127 128 128 if (m_animationTimer.isActive()) { 129 if ( previousTimeToNextService < timeToNextService)129 if (m_previousTimeToNextService < timeToNextService) 130 130 return; 131 131 … … 133 133 } 134 134 135 previousTimeToNextService = timeToNextService;135 m_previousTimeToNextService = timeToNextService; 136 136 m_animationTimer.startOneShot(timeToNextService); 137 137 } … … 145 145 if (!m_animationTimer.isActive() || m_animationTimer.repeatInterval() == 0) 146 146 m_animationTimer.startRepeating(cAnimationTimerDelay); 147 148 m_previousTimeToNextService = timeToNextService; 147 149 return; 148 150 } … … 158 160 if (m_animationTimer.isActive()) 159 161 m_animationTimer.stop(); 162 m_previousTimeToNextService = timeToNextService; 160 163 m_animationTimer.startOneShot(timeToNextService); 161 164 } -
trunk/Source/WebCore/page/animation/AnimationControllerPrivate.h
r111639 r117216 143 143 WaitingAnimationsSet m_animationsWaitingForStartTimeResponse; 144 144 bool m_waitingForAsyncStartNotification; 145 double m_previousTimeToNextService; 145 146 }; 146 147
Note: See TracChangeset
for help on using the changeset viewer.