Chromium Code Reviews| Index: chrome/renderer/render_widget.cc |
| =================================================================== |
| --- chrome/renderer/render_widget.cc (revision 10255) |
| +++ chrome/renderer/render_widget.cc (working copy) |
| @@ -549,8 +549,11 @@ |
| void RenderWidget::DidScrollRect(WebWidget* webwidget, int dx, int dy, |
| const gfx::Rect& clip_rect) { |
| - // We only support scrolling along one axis at a time. |
| - DCHECK((dx && !dy) || (!dx && dy)); |
| + if (dx != 0 && dy != 0) { |
| + // We only support scrolling along one axis at a time. |
|
darin (slow to review)
2009/02/26 22:15:44
this works by causing us to fall through to the sl
|
| + DidScrollRect(webwidget, 0, dy, clip_rect); |
| + dy = 0; |
| + } |
| bool intersects_with_painting = paint_rect_.Intersects(clip_rect); |