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

Unified Diff: webkit/tools/test_shell/webwidget_host_win.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
« chrome/renderer/render_widget.cc ('K') | « chrome/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« chrome/renderer/render_widget.cc ('K') | « chrome/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698