Index: components/printing/renderer/print_web_view_helper.cc |
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc |
index 0169f36a885a033351469cc1142f17e003f018fa..b194534f33d56758a965d85e6504b5e59b777c77 100644 |
--- a/components/printing/renderer/print_web_view_helper.cc |
+++ b/components/printing/renderer/print_web_view_helper.cc |
@@ -712,11 +712,11 @@ void PrepareFrameAndViewForPrint::ResizeForPrinting() { |
} |
void PrepareFrameAndViewForPrint::StartPrinting() { |
- ResizeForPrinting(); |
blink::WebView* web_view = frame_.view(); |
web_view->settings()->setShouldPrintBackgrounds(should_print_backgrounds_); |
expected_pages_count_ = |
frame()->printBegin(web_print_params_, node_to_print_); |
+ ResizeForPrinting(); |
is_printing_started_ = true; |
} |