Index: content/browser/renderer_host/input/input_router_impl.cc |
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc |
index ab6ab3e5d40e55db4f257d9847b5ab8e3091ab49..cf7e7cd422824f187ad152a58b5f6b10e1c5dc51 100644 |
--- a/content/browser/renderer_host/input/input_router_impl.cc |
+++ b/content/browser/renderer_host/input/input_router_impl.cc |
@@ -429,6 +429,12 @@ bool InputRouterImpl::OfferToClient(const WebInputEvent& input_event, |
bool InputRouterImpl::OfferToRenderer(const WebInputEvent& input_event, |
const ui::LatencyInfo& latency_info, |
InputEventDispatchType dispatch_type) { |
+ DCHECK(input_event.type != blink::WebInputEvent::GestureFlingStart || |
+ static_cast<const blink::WebGestureEvent&>(input_event) |
+ .data.flingStart.velocityX != 0.0 || |
+ static_cast<const blink::WebGestureEvent&>(input_event) |
+ .data.flingStart.velocityY != 0.0); |
+ |
// This conversion is temporary. WebInputEvent should be generated |
// directly from ui::Event with the viewport coordinates. See |
// crbug.com/563730. |