Skip to content
  • igor.o@sisa.samsung.com's avatar
    https://bugs.webkit.org/show_bug.cgi?id=38025 · 251a2ec0
    igor.o@sisa.samsung.com authored
    Implement updateAnimationTimerForRender. This reduces unnecessary animation
    steps on the current RenderObject by checking the value of timeToNextService
    before starting a new timer.
    
    Reviewed by Dean Jackson.
    
    Test: animations/animation-welcome-safari.html
    
    * page/animation/AnimationController.cpp:
    (WebCore::AnimationControllerPrivate::updateAnimationTimerForRenderer):
    (WebCore):
    (WebCore::AnimationController::updateAnimations):
    * page/animation/AnimationControllerPrivate.h:
    (AnimationControllerPrivate):
    
    LayoutTests;
    
    Every call to RenderObject::setAnimatableStyle() iterates through all m_compositeAnimations: potentially O(N^2)
    https://bugs.webkit.org/show_bug.cgi?id=38025
    
    Reviewed Dean Jackson.
    
    * animations/animation-welcome-safari-expected.txt: Added.
    * animations/animation-welcome-safari.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    251a2ec0