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

Unified Diff: chrome/renderer/print_web_view_helper_mac.mm

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_mac.mm
diff --git a/chrome/renderer/print_web_view_helper_mac.mm b/chrome/renderer/print_web_view_helper_mac.mm
index 1700f669af18fc4a068f1e166c7aececcd6b1ffb..e4ec9ff2e4f7c6c798ce3792dd7bf30a13f2f78a 100644
--- a/chrome/renderer/print_web_view_helper_mac.mm
+++ b/chrome/renderer/print_web_view_helper_mac.mm
@@ -174,7 +174,8 @@ void PrintWebViewHelper::RenderPage(
printing::PageSizeMargins page_layout_in_points;
GetPageSizeAndMarginsInPoints(frame, page_number,
print_pages_params_->params,
- &page_layout_in_points);
+ &page_layout_in_points,
+ default_margins_requested_);
#if !defined(USE_SKIA)
// For CoreGraphics, print in the margins before printing in the content

Powered by Google App Engine
This is Rietveld 408576698