Added DCHECK() to prevent webwidget_->isInputThrottled() from being called when webwidget_ is NULL.

BUG=
TEST=
CID=103685
TBR=jamesr

Review URL: https://chromiumcodereview.appspot.com/10830024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149918 0039d316-1c4b-4281-b951-d872f2087c98
parent 92e631b4
...@@ -583,7 +583,7 @@ void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { ...@@ -583,7 +583,7 @@ void RenderWidget::OnHandleInputEvent(const IPC::Message& message) {
input_event->type == WebInputEvent::MouseWheel || input_event->type == WebInputEvent::MouseWheel ||
WebInputEvent::isTouchEventType(input_event->type); WebInputEvent::isTouchEventType(input_event->type);
bool is_input_throttled = bool is_input_throttled =
webwidget_->isInputThrottled() || (webwidget_ ? webwidget_->isInputThrottled() : false) ||
paint_aggregator_.HasPendingUpdate(); paint_aggregator_.HasPendingUpdate();
if (event_type_gets_rate_limited && is_input_throttled && !is_hidden_) { if (event_type_gets_rate_limited && is_input_throttled && !is_hidden_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment