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..14ecfd6ac6aad1b84bbfdb9d396f1fd5378086dd 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,11 @@ WebTouchPoint CreateWebTouchPoint(const MotionEvent& event, |
float major_radius = event.GetTouchMajor(pointer_index) / 2.f; |
float minor_radius = event.GetTouchMinor(pointer_index) / 2.f; |
+ |
+ DCHECK(minor_radius <= major_radius); |
jdduke (slow)
2015/01/13 19:31:26
Nit: DCHECK_LE
|
+ if (minor_radius == 0) |
+ minor_radius = major_radius; |
+ |
float orientation_deg = event.GetOrientation(pointer_index) * 180.f / M_PI; |
DCHECK_GE(major_radius, 0); |
DCHECK_GE(minor_radius, 0); |