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

Unified Diff: chrome/renderer/render_widget.cc

Issue 27064: A DCHECK was validating a little to widely, moved it into the if that needed ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
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);
« no previous file with comments | « no previous file | webkit/tools/test_shell/webwidget_host_win.cc » ('j') | webkit/tools/test_shell/webwidget_host_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698