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 524cf001431e4c0670b890576ffbb5b809da215d..303a8d0844c86fa99f345dc34908ac808d600193 100644 |
--- a/content/browser/renderer_host/input/web_input_event_util.cc |
+++ b/content/browser/renderer_host/input/web_input_event_util.cc |
@@ -215,6 +215,10 @@ void UpdateWindowsKeyCodeAndKeyIdentifier(blink::WebKeyboardEvent* event, |
blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( |
const ui::MotionEvent& event) { |
+ COMPILE_ASSERT(static_cast<int>(MotionEvent::MAX_TOUCH_POINT_COUNT) == |
+ static_cast<int>(blink::WebTouchEvent::touchesLengthCap), |
+ inconsistent_maximum_number_of_active_touch_points); |
+ |
blink::WebTouchEvent result; |
WebTouchEventTraits::ResetType( |