Title: [111362] trunk/Source/WebCore
- Revision
- 111362
- Author
- [email protected]
- Date
- 2012-03-19 23:17:23 -0700 (Mon, 19 Mar 2012)
Log Message
Add FractionalLayoutUnit version of blend to AnimationUtilities
https://bugs.webkit.org/show_bug.cgi?id=81572
Reviewed by Eric Seidel.
Add version of blend method that operates on FractionalLayoutUnits. This
will be used in place of the integer version in many places once we
enable support for subpixel layout.
No new tests.
* platform/FractionalLayoutUnit.h:
Include math.h to make GTK build happy.
* platform/animation/AnimationUtilities.h:
(WebCore::blend):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (111361 => 111362)
--- trunk/Source/WebCore/ChangeLog 2012-03-20 05:58:36 UTC (rev 111361)
+++ trunk/Source/WebCore/ChangeLog 2012-03-20 06:17:23 UTC (rev 111362)
@@ -1,3 +1,22 @@
+2012-03-19 Emil A Eklund <[email protected]>
+
+ Add FractionalLayoutUnit version of blend to AnimationUtilities
+ https://bugs.webkit.org/show_bug.cgi?id=81572
+
+ Reviewed by Eric Seidel.
+
+ Add version of blend method that operates on FractionalLayoutUnits. This
+ will be used in place of the integer version in many places once we
+ enable support for subpixel layout.
+
+ No new tests.
+
+ * platform/FractionalLayoutUnit.h:
+ Include math.h to make GTK build happy.
+
+ * platform/animation/AnimationUtilities.h:
+ (WebCore::blend):
+
2012-03-19 Adam Barth <[email protected]>
Remove support for "magic" iframe
Modified: trunk/Source/WebCore/platform/FractionalLayoutUnit.h (111361 => 111362)
--- trunk/Source/WebCore/platform/FractionalLayoutUnit.h 2012-03-20 05:58:36 UTC (rev 111361)
+++ trunk/Source/WebCore/platform/FractionalLayoutUnit.h 2012-03-20 06:17:23 UTC (rev 111362)
@@ -33,6 +33,7 @@
#include <limits.h>
#include <limits>
+#include <math.h>
#include <stdlib.h>
namespace WebCore {
Modified: trunk/Source/WebCore/platform/animation/AnimationUtilities.h (111361 => 111362)
--- trunk/Source/WebCore/platform/animation/AnimationUtilities.h 2012-03-20 05:58:36 UTC (rev 111361)
+++ trunk/Source/WebCore/platform/animation/AnimationUtilities.h 2012-03-20 06:17:23 UTC (rev 111362)
@@ -26,6 +26,7 @@
#ifndef AnimationUtilities_h
#define AnimationUtilities_h
+#include "FractionalLayoutUnit.h"
#include <wtf/MathExtras.h>
namespace WebCore {
@@ -50,6 +51,11 @@
return static_cast<float>(from + (to - from) * progress);
}
+inline FractionalLayoutUnit blend(FractionalLayoutUnit from, FractionalLayoutUnit to, double progress)
+{
+ return from + (to - from) * progress;
+}
+
} // namespace WebCore
#endif // AnimationUtilities_h
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes