Changeset 148122 in webkit
- Timestamp:
- Apr 10, 2013 12:03:02 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r148121 r148122 1 2013-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 1 13 2013-04-10 Robert Hogan <robert@webkit.org> 2 14 -
trunk/Source/WebCore/page/animation/AnimationBase.cpp
r141314 r148122 523 523 if (postActive() || !m_animation->duration()) 524 524 return 1.0; 525 525 526 if (m_animation->iterationCount() > 0 && elapsedTime >= dur) { 526 527 const int integralIterationCount = static_cast<int>(m_animation->iterationCount()); … … 541 542 ctf->y2(), 542 543 fractionalTime, m_animation->duration()); 543 } else if (tf->isStepsTimingFunction()) { 544 } 545 546 if (tf->isStepsTimingFunction()) { 544 547 const StepsTimingFunction* stf = static_cast<const StepsTimingFunction*>(tf); 545 548 return solveStepsFunction(stf->numberOfSteps(), stf->stepAtStart(), fractionalTime); 546 } else 547 return fractionalTime; 549 } 550 551 return fractionalTime; 548 552 } 549 553
Note: See TracChangeset
for help on using the changeset viewer.