Changeset 106672 in webkit
- Timestamp:
- Feb 3, 2012 10:21:22 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106671 r106672 1 2012-02-03 Alexis Menard <alexis.menard@openbossa.org> 2 3 REGRESSION (r105401-105403): Blue flash on css border transition 4 https://bugs.webkit.org/show_bug.cgi?id=77491 5 6 Reviewed by Simon Fraser. 7 8 * animations/animation-border-overflow-expected.txt: Added. 9 * animations/animation-border-overflow.html: Added. 10 1 11 2012-02-03 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r106670 r106672 1 2012-02-03 Alexis Menard <alexis.menard@openbossa.org> 2 3 REGRESSION (r105401-105403): Blue flash on css border transition 4 https://bugs.webkit.org/show_bug.cgi?id=77491 5 6 Reviewed by Simon Fraser. 7 8 The new blend function added with r105403 takes unsigned as parameters therefore 9 we have to be careful to not overflow in case the to is less than from (animating 10 from 400 to 0 for example). 11 12 Test: animations/animation-border-overflow.html 13 14 * platform/animation/AnimationUtilities.h: 15 (WebCore::blend): 16 1 17 2012-02-03 Justin Novosad <junov@chromium.org> 2 18 -
trunk/Source/WebCore/platform/animation/AnimationUtilities.h
r105403 r106672 38 38 inline unsigned blend(unsigned from, unsigned to, double progress) 39 39 { 40 return static_cast<unsigned>(lround( static_cast<double>(from) + static_cast<double>(to - from) * progress));40 return static_cast<unsigned>(lround(to > from ? static_cast<double>(from) + static_cast<double>(to - from) * progress : static_cast<double>(from) - static_cast<double>(from - to) * progress)); 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.