Index: chrome/renderer/print_web_view_helper.cc |
=================================================================== |
--- chrome/renderer/print_web_view_helper.cc (revision 98831) |
+++ chrome/renderer/print_web_view_helper.cc (working copy) |
@@ -653,7 +653,6 @@ |
PrepareFrameAndViewForPrint* prepare, |
PrintMsg_Print_Params* params) { |
PageSizeMargins page_layout_in_points; |
- prepare->UpdatePrintParams(*params); |
PrintWebViewHelper::GetPageSizeAndMarginsInPoints(frame, 0, *params, |
&page_layout_in_points); |
int dpi = GetDPI(params); |
@@ -684,6 +683,8 @@ |
page_layout_in_points.margin_top, printing::kPointsPerInch, dpi)); |
params->margin_left = static_cast<int>(ConvertUnitDouble( |
page_layout_in_points.margin_left, printing::kPointsPerInch, dpi)); |
+ |
+ prepare->UpdatePrintParams(*params); |
} |
bool PrintWebViewHelper::InitPrintSettings(WebKit::WebFrame* frame, |