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

Unified Diff: chrome/renderer/print_web_view_helper_win.cc

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 1 month 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/renderer/print_web_view_helper_win.cc
diff --git a/chrome/renderer/print_web_view_helper_win.cc b/chrome/renderer/print_web_view_helper_win.cc
index 08b6bed88b9da5c34538dc8c3e403623fd9ac0dc..e680e802b5edaa94e0846f232fb9f3aaab6db34b 100644
--- a/chrome/renderer/print_web_view_helper_win.cc
+++ b/chrome/renderer/print_web_view_helper_win.cc
@@ -182,8 +182,8 @@ Metafile* PrintWebViewHelper::RenderPage(
bool is_preview, WebFrame* frame, Metafile* metafile) {
printing::PageSizeMargins page_layout_in_points;
GetPageSizeAndMarginsInPoints(frame, page_number, params,
- &page_layout_in_points);
-
+ &page_layout_in_points,
+ default_margins_requested_);
int width;
int height;
if (is_preview) {
« chrome/renderer/print_web_view_helper.cc ('K') | « chrome/renderer/print_web_view_helper_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698