Index: chrome/renderer/print_web_view_helper_win.cc |
=================================================================== |
--- chrome/renderer/print_web_view_helper_win.cc (revision 82287) |
+++ chrome/renderer/print_web_view_helper_win.cc (working copy) |
@@ -207,10 +207,13 @@ |
} |
gfx::Size page_size(width, height); |
+ gfx::Size content_size(static_cast<int>(content_width_in_points), |
+ static_cast<int>(content_height_in_points)); |
gfx::Point content_origin(static_cast<int>(margin_left_in_points), |
static_cast<int>(margin_top_in_points)); |
skia::PlatformDevice* device = (*metafile)->StartPageForVectorCanvas( |
- page_size, content_origin, frame->getPrintPageShrink(page_number)); |
+ page_size, content_size, content_origin, |
+ frame->getPrintPageShrink(page_number)); |
DCHECK(device); |
skia::VectorCanvas canvas(device); |