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

Unified Diff: chrome/common/print_messages.cc

Issue 10836330: Rasterize page before printing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/common/print_messages.cc
diff --git a/chrome/common/print_messages.cc b/chrome/common/print_messages.cc
index bc92d7767ab8d77b6cdf9eb00c62efa7395f576b..140a23ade40a206b4feee8c8916055cf02ffaba1 100644
--- a/chrome/common/print_messages.cc
+++ b/chrome/common/print_messages.cc
@@ -29,33 +29,15 @@ PrintMsg_Print_Params::PrintMsg_Print_Params()
display_header_footer(false),
date(),
title(),
- url() {
+ url(),
+ raster_type(RASTER_NONE),
+ raster_size(16 * 1024 * 1024) {
}
PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
void PrintMsg_Print_Params::Reset() {
- page_size = gfx::Size();
- content_size = gfx::Size();
- printable_area = gfx::Rect();
- margin_top = 0;
- margin_left = 0;
- dpi = 0;
- min_shrink = 0;
- max_shrink = 0;
- desired_dpi = 0;
- document_cookie = 0;
- selection_only = false;
- supports_alpha_blend = false;
- preview_ui_addr = std::string();
- preview_request_id = 0;
- is_first_request = false;
- print_scaling_option = WebKit::WebPrintScalingOptionSourceSize;
- print_to_pdf = false;
- display_header_footer = false;
- date = string16();
- title = string16();
- url = string16();
+ *this = PrintMsg_Print_Params();
}
PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()

Powered by Google App Engine
This is Rietveld 408576698