Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: content/renderer/render_widget.cc

Issue 10830024: Added DCHECK() to prevent webwidget_->isInputThrottled() from being called when webwidget_ is NULL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added parentheses for clarity Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 0a7f2f46189f3fdb908d4a0bc8d0e396130f86c1..43543df6224229ca3f9aa340d8e2718ba5f6a11d 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -583,7 +583,7 @@ void RenderWidget::OnHandleInputEvent(const IPC::Message& message) {
input_event->type == WebInputEvent::MouseWheel ||
WebInputEvent::isTouchEventType(input_event->type);
bool is_input_throttled =
- webwidget_->isInputThrottled() ||
+ (webwidget_ ? webwidget_->isInputThrottled() : false) ||
paint_aggregator_.HasPendingUpdate();
if (event_type_gets_rate_limited && is_input_throttled && !is_hidden_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698