Index: chrome/renderer/print_web_view_helper.cc |
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc |
index 18a7eb3c278618c2c37e8aa32e96c53cb96d818f..f88ec96130a740caba4104a8a478dee3dc463632 100644 |
--- a/chrome/renderer/print_web_view_helper.cc |
+++ b/chrome/renderer/print_web_view_helper.cc |
@@ -987,7 +987,6 @@ void PrintWebViewHelper::UpdatePrintableSizeInPrintParameters( |
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); |
@@ -1018,6 +1017,8 @@ void PrintWebViewHelper::UpdatePrintableSizeInPrintParameters( |
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, |