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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 10071024: Fixed issue with shrink output when using system print dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/print_web_view_helper.cc
===================================================================
--- chrome/renderer/print_web_view_helper.cc (revision 132045)
+++ chrome/renderer/print_web_view_helper.cc (working copy)
@@ -665,7 +665,8 @@
fit_to_page_(true),
user_cancelled_scripted_print_count_(0),
is_scripted_printing_blocked_(false),
- notify_browser_of_print_failure_(true) {
+ notify_browser_of_print_failure_(true),
+ printing_from_preview_(false) {
}
PrintWebViewHelper::~PrintWebViewHelper() {}
@@ -751,10 +752,12 @@
}
// Render Pages for printing.
+ printing_from_preview_ = true;
if (!RenderPagesForPrint(pdf_frame, pdf_element)) {
LOG(ERROR) << "RenderPagesForPrint failed";
DidFinishPrinting(FAIL_PRINT);
}
+ printing_from_preview_ = false;
}
bool PrintWebViewHelper::GetPrintFrame(WebKit::WebFrame** frame) {

Powered by Google App Engine
This is Rietveld 408576698