Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: ui/gfx/animation/tween.cc

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/animation/animation_unittest.cc ('k') | ui/gfx/animation/tween_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/tween.cc
diff --git a/ui/gfx/animation/tween.cc b/ui/gfx/animation/tween.cc
index 483d772b5b4d47f4f7ba7f65d391f665df5819db..c76924bda3e8d92dcba7c6c39dadf24e668fb523 100644
--- a/ui/gfx/animation/tween.cc
+++ b/ui/gfx/animation/tween.cc
@@ -6,10 +6,6 @@
#include <math.h>
-#if defined(OS_WIN)
-#include <float.h>
-#endif
-
#include <algorithm>
#include "base/basictypes.h"
@@ -140,11 +136,7 @@ int Tween::IntValueBetween(double value, int start, int target) {
delta--;
else
delta++;
-#if defined(OS_WIN)
- return start + static_cast<int>(value * _nextafter(delta, 0));
-#else
return start + static_cast<int>(value * nextafter(delta, 0));
-#endif
}
//static
« no previous file with comments | « ui/gfx/animation/animation_unittest.cc ('k') | ui/gfx/animation/tween_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698