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

Unified Diff: chrome/renderer/render_view.cc

Issue 10957: Add superficial unit test for PrintJob. That's a start. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 5486)
+++ chrome/renderer/render_view.cc (working copy)
@@ -453,6 +453,7 @@
NOTREACHED();
pages = 0;
} else {
+ DCHECK_GT(printed_document_width_, 0);
// Force to recalculate the height, otherwise it reuse the current window
// height as the default.
float effective_shrink = printed_document_width_ / paper_width;

Powered by Google App Engine
This is Rietveld 408576698