Commit f82efa51 authored by morrita@google.com's avatar morrita@google.com

Unreviewed attempt for fixing windows build.

- Included <wtf/MathExtras.h> which defined portable version of lround().
- Add some static_cast<> to suppress warnings.

* platform/animation/AnimationUtilities.h:
(WebCore::blend):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cdecf556
2011-12-13 Hajime Morrita <morrita@chromium.org>
Unreviewed attempt for fixing windows build.
- Included <wtf/MathExtras.h> which defined portable version of lround().
- Add some static_cast<> to suppress warnings.
* platform/animation/AnimationUtilities.h:
(WebCore::blend):
2011-12-13 Wei Charles <charles.wei@torchmobile.com.cn>
[BlackBerry] Add the new plugin files into the build system.
......@@ -26,13 +26,13 @@
#ifndef AnimationUtilities_h
#define AnimationUtilities_h
#include <math.h>
#include <wtf/MathExtras.h>
namespace WebCore {
inline int blend(int from, int to, double progress)
{
return lround(from + (to - from) * progress);
return static_cast<int>(lround(static_cast<double>(from) + static_cast<double>(to - from) * progress));
}
inline double blend(double from, double to, double progress)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment