Changeset 106718 in webkit
- Timestamp:
- Feb 3, 2012, 5:30:43 PM (15 years ago)
- Location:
- branches/chromium/1025
- Files:
-
- 1 edited
- 2 copied
-
LayoutTests/animations/animation-border-overflow-expected.txt (copied) (copied from trunk/LayoutTests/animations/animation-border-overflow-expected.txt )
-
LayoutTests/animations/animation-border-overflow.html (copied) (copied from trunk/LayoutTests/animations/animation-border-overflow.html )
-
Source/WebCore/platform/animation/AnimationUtilities.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1025/Source/WebCore/platform/animation/AnimationUtilities.h
r105403 r106718 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.