Changeset 150862 in webkit


Ignore:
Timestamp:
May 28, 2013 8:14:10 PM (11 years ago)
Author:
dino@apple.com
Message:

Animations do not restart after exiting page cache
https://bugs.webkit.org/show_bug.cgi?id=116900

Reviewed by Tim Horton.

Source/WebCore:

Animations are suspended as they enter the page cache, but
were not getting correctly resumed when exiting. The cause
was an error in r149576 which was checking a global flag for suspension
on the AnimationController and thus not trying to resume anything.

Test: animations/resume-after-page-cache.html

  • page/animation/AnimationController.cpp:

(WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
(WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):

LayoutTests:

New test to make sure an animation will resume if it
enters and leaves the page cache.

  • animations/resources/page-cache-helper.html: Added.
  • animations/resume-after-page-cache-expected.txt: Added.
  • animations/resume-after-page-cache.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r150857 r150862  
     12013-05-28  Dean Jackson  <dino@apple.com>
     2
     3        Animations do not restart after exiting page cache
     4        https://bugs.webkit.org/show_bug.cgi?id=116900
     5
     6        Reviewed by Tim Horton.
     7
     8        New test to make sure an animation will resume if it
     9        enters and leaves the page cache.
     10
     11        * animations/resources/page-cache-helper.html: Added.
     12        * animations/resume-after-page-cache-expected.txt: Added.
     13        * animations/resume-after-page-cache.html: Added.
     14
    1152013-05-28  Brent Fulgham  <bfulgham@apple.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r150856 r150862  
     12013-05-28  Dean Jackson  <dino@apple.com>
     2
     3        Animations do not restart after exiting page cache
     4        https://bugs.webkit.org/show_bug.cgi?id=116900
     5
     6        Reviewed by Tim Horton.
     7
     8        Animations are suspended as they enter the page cache, but
     9        were not getting correctly resumed when exiting. The cause
     10        was an error in r149576 which was checking a global flag for suspension
     11        on the AnimationController and thus not trying to resume anything.
     12
     13        Test: animations/resume-after-page-cache.html
     14
     15        * page/animation/AnimationController.cpp:
     16        (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
     17        (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
     18
    1192013-05-28  Chris Rogers  <crogers@google.com>
    220
  • trunk/Source/WebCore/page/animation/AnimationController.cpp

    r149980 r150862  
    293293void AnimationControllerPrivate::suspendAnimationsForDocument(Document* document)
    294294{
    295     if (isSuspended())
    296         return;
    297 
    298295    setBeginAnimationUpdateTime(cBeginAnimationUpdateTimeNotSet);
    299296
     
    312309void AnimationControllerPrivate::resumeAnimationsForDocument(Document* document)
    313310{
    314     if (!isSuspended())
    315         return;
    316 
    317311    setBeginAnimationUpdateTime(cBeginAnimationUpdateTimeNotSet);
    318312
Note: See TracChangeset for help on using the changeset viewer.