Chromium Code Reviews| Index: content/browser/renderer_host/input/motion_event_android.cc |
| diff --git a/content/browser/renderer_host/input/motion_event_android.cc b/content/browser/renderer_host/input/motion_event_android.cc |
| index 3f18f95561b3d650ccc3b3d36bd040f6f12f587f..bed040a7a9b6b65655a0713b2ff1751758f027ff 100644 |
| --- a/content/browser/renderer_host/input/motion_event_android.cc |
| +++ b/content/browser/renderer_host/input/motion_event_android.cc |
| @@ -5,9 +5,9 @@ |
| #include "content/browser/renderer_host/input/motion_event_android.h" |
| #include <android/input.h> |
| +#include <cmath> |
|
Mark Mentovai
2015/04/08 18:04:37
Leave a blank line between C system headers and C+
Mateusz Szymański
2015/04/09 07:32:51
Done.
|
| #include "base/android/jni_android.h" |
| -#include "base/float_util.h" |
| #include "jni/MotionEvent_jni.h" |
| #include "ui/events/event_constants.h" |
| @@ -92,7 +92,7 @@ base::TimeTicks FromAndroidTime(int64 time_ms) { |
| } |
| float ToValidFloat(float x) { |
| - if (base::IsNaN(x)) |
| + if (std::isnan(x)) |
| return 0.f; |
| // Wildly large orientation values have been observed in the wild after device |