Changeset 111362 in webkit
- Timestamp:
- Mar 19, 2012 11:17:23 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r111361 r111362 1 2012-03-19 Emil A Eklund <eae@chromium.org> 2 3 Add FractionalLayoutUnit version of blend to AnimationUtilities 4 https://bugs.webkit.org/show_bug.cgi?id=81572 5 6 Reviewed by Eric Seidel. 7 8 Add version of blend method that operates on FractionalLayoutUnits. This 9 will be used in place of the integer version in many places once we 10 enable support for subpixel layout. 11 12 No new tests. 13 14 * platform/FractionalLayoutUnit.h: 15 Include math.h to make GTK build happy. 16 17 * platform/animation/AnimationUtilities.h: 18 (WebCore::blend): 19 1 20 2012-03-19 Adam Barth <abarth@webkit.org> 2 21 -
trunk/Source/WebCore/platform/FractionalLayoutUnit.h
r108239 r111362 34 34 #include <limits.h> 35 35 #include <limits> 36 #include <math.h> 36 37 #include <stdlib.h> 37 38 -
trunk/Source/WebCore/platform/animation/AnimationUtilities.h
r106672 r111362 27 27 #define AnimationUtilities_h 28 28 29 #include "FractionalLayoutUnit.h" 29 30 #include <wtf/MathExtras.h> 30 31 … … 51 52 } 52 53 54 inline FractionalLayoutUnit blend(FractionalLayoutUnit from, FractionalLayoutUnit to, double progress) 55 { 56 return from + (to - from) * progress; 57 } 58 53 59 } // namespace WebCore 54 60
Note: See TracChangeset
for help on using the changeset viewer.