Index: third_party/WebKit/public/platform/WebPointerProperties.h |
diff --git a/third_party/WebKit/public/platform/WebPointerProperties.h b/third_party/WebKit/public/platform/WebPointerProperties.h |
index 4d59b17a1b14f3102e1a8a4598ebaf79fd3ab322..8b8af93bcbd06b457467bf796ee881fbcc971f99 100644 |
--- a/third_party/WebKit/public/platform/WebPointerProperties.h |
+++ b/third_party/WebKit/public/platform/WebPointerProperties.h |
@@ -5,6 +5,8 @@ |
#ifndef WebPointerProperties_h |
#define WebPointerProperties_h |
+#include <limits> |
+ |
namespace blink { |
// This class encapsulates the properties that are common between mouse and |
@@ -17,7 +19,7 @@ public: |
WebPointerProperties() |
: button(ButtonNone) |
, id(0) |
- , force(0.f) |
+ , force(std::numeric_limits<float>::quiet_NaN()) |
, tiltX(0) |
, tiltY(0) |
, pointerType(PointerType::Unknown) |