Changeset 91187 in webkit


Ignore:
Timestamp:
Jul 18, 2011 9:16:17 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

AnimationBase asserts if a test tries to pause during the delay phase
https://bugs.webkit.org/show_bug.cgi?id=59475

Patch by Young Han Lee <joybro@company100.net> on 2011-07-18
Reviewed by Simon Fraser.

There is no more assertion failure after r90765, but the testcase still fails due to
the miscalculation of the pauseTime. This patch pauses the animation at its startTime
if a test tries to pause it during the delay phase.

Source/WebCore:

Test: transitions/transition-in-delay-phase.html

  • page/animation/AnimationBase.cpp:

(WebCore::AnimationBase::freezeAtTime):

LayoutTests:

  • transitions/transition-in-delay-phase-expected.txt: Added.
  • transitions/transition-in-delay-phase.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r91186 r91187  
     12011-07-18  Young Han Lee  <joybro@company100.net>
     2
     3        AnimationBase asserts if a test tries to pause during the delay phase
     4        https://bugs.webkit.org/show_bug.cgi?id=59475
     5
     6        Reviewed by Simon Fraser.
     7
     8        There is no more assertion failure after r90765, but the testcase still fails due to
     9        the miscalculation of the pauseTime. This patch pauses the animation at its startTime
     10        if a test tries to pause it during the delay phase.
     11
     12        * transitions/transition-in-delay-phase-expected.txt: Added.
     13        * transitions/transition-in-delay-phase.html: Added.
     14
    1152011-07-18  Stephen White  <senorblanco@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r91184 r91187  
     12011-07-18  Young Han Lee  <joybro@company100.net>
     2
     3        AnimationBase asserts if a test tries to pause during the delay phase
     4        https://bugs.webkit.org/show_bug.cgi?id=59475
     5
     6        Reviewed by Simon Fraser.
     7
     8        There is no more assertion failure after r90765, but the testcase still fails due to
     9        the miscalculation of the pauseTime. This patch pauses the animation at its startTime
     10        if a test tries to pause it during the delay phase.
     11
     12        Test: transitions/transition-in-delay-phase.html
     13
     14        * page/animation/AnimationBase.cpp:
     15        (WebCore::AnimationBase::freezeAtTime):
     16
    1172011-07-18  Vsevolod Vlasov  <vsevik@chromium.org>
    218
  • trunk/Source/WebCore/page/animation/AnimationBase.cpp

    r90765 r91187  
    14501450
    14511451    ASSERT(m_startTime);        // if m_startTime is zero, we haven't started yet, so we'll get a bad pause time.
    1452     m_pauseTime = m_startTime + t - m_animation->delay();
     1452    if (t <= m_animation->delay())
     1453        m_pauseTime = m_startTime;
     1454    else
     1455        m_pauseTime = m_startTime + t - m_animation->delay();
    14531456
    14541457#if USE(ACCELERATED_COMPOSITING)
Note: See TracChangeset for help on using the changeset viewer.