Fixed https://bugs.webkit.org/show_bug.cgi?id=22919
I added a common getElapsedTime() function to AnimationBase which uses a combination of
the techniques from KeyframeAnimation and AnimationBase to compute elapsedTime in all
states.
* page/animation/AnimationBase.cpp:
(WebCore::AnimationBase::progress):
(WebCore::AnimationBase::getElapsedTime):
* page/animation/AnimationBase.h:
* page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::animate):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4 files changed