Index: content/browser/renderer_host/input/web_input_event_util.cc |
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc |
index bfba064bdf6889c5778526f601429c194affc65e..50d779d29f419e626f3d4304e8b9e49fe4538672 100644 |
--- a/content/browser/renderer_host/input/web_input_event_util.cc |
+++ b/content/browser/renderer_host/input/web_input_event_util.cc |
@@ -210,6 +210,10 @@ WebTouchPoint CreateWebTouchPoint(const MotionEvent& event, |
float major_radius = event.GetTouchMajor(pointer_index) / 2.f; |
float minor_radius = event.GetTouchMinor(pointer_index) / 2.f; |
+ |
+ DCHECK_LE(minor_radius, major_radius); |
+ DCHECK_GT(major_radius, 0); |
jdduke (slow)
2015/01/13 21:08:28
I'm not sure we can assume that major_radius is no
|
+ |
float orientation_deg = event.GetOrientation(pointer_index) * 180.f / M_PI; |
DCHECK_GE(major_radius, 0); |
DCHECK_GE(minor_radius, 0); |