Chromium Code Reviews| Index: webkit/tools/test_shell/webwidget_host_win.cc |
| =================================================================== |
| --- webkit/tools/test_shell/webwidget_host_win.cc (revision 10255) |
| +++ webkit/tools/test_shell/webwidget_host_win.cc (working copy) |
| @@ -142,7 +142,11 @@ |
| } |
| void WebWidgetHost::DidScrollRect(int dx, int dy, const gfx::Rect& clip_rect) { |
| - DCHECK(dx || dy); |
| + if (dx != 0 && dy != 0) { |
| + // We only support uni-directional scroll |
|
darin (slow to review)
2009/02/26 22:15:44
ditto
|
| + DidScrollRect(0, dy, clip_rect); |
| + dy = 0; |
| + } |
| // If we already have a pending scroll operation or if this scroll operation |
| // intersects the existing paint region, then just failover to invalidating. |