Changeset 148122 in webkit


Ignore:
Timestamp:
Apr 10, 2013 12:03:02 PM (11 years ago)
Author:
Simon Fraser
Message:

Minor code cleanup in AnimationBase::progress
https://bugs.webkit.org/show_bug.cgi?id=114371

Reviewed by Dean Jackson.

Convert some "return; else if" to just "return; if".

  • page/animation/AnimationBase.cpp:

(WebCore::AnimationBase::progress):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148121 r148122  
     12013-04-10  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Minor code cleanup in AnimationBase::progress
     4        https://bugs.webkit.org/show_bug.cgi?id=114371
     5
     6        Reviewed by Dean Jackson.
     7
     8        Convert some "return; else if" to just "return; if".
     9
     10        * page/animation/AnimationBase.cpp:
     11        (WebCore::AnimationBase::progress):
     12
    1132013-04-10  Robert Hogan  <robert@webkit.org>
    214
  • trunk/Source/WebCore/page/animation/AnimationBase.cpp

    r141314 r148122  
    523523    if (postActive() || !m_animation->duration())
    524524        return 1.0;
     525
    525526    if (m_animation->iterationCount() > 0 && elapsedTime >= dur) {
    526527        const int integralIterationCount = static_cast<int>(m_animation->iterationCount());
     
    541542                                        ctf->y2(),
    542543                                        fractionalTime, m_animation->duration());
    543     } else if (tf->isStepsTimingFunction()) {
     544    }
     545   
     546    if (tf->isStepsTimingFunction()) {
    544547        const StepsTimingFunction* stf = static_cast<const StepsTimingFunction*>(tf);
    545548        return solveStepsFunction(stf->numberOfSteps(), stf->stepAtStart(), fractionalTime);
    546     } else
    547         return fractionalTime;
     549    }
     550
     551    return fractionalTime;
    548552}
    549553
Note: See TracChangeset for help on using the changeset viewer.