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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 981843003: Printing: PDFs should only be fit to page if there is a size mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf169120
Patch Set: fix win Created 5 years, 9 months 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: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 4e051349df677dd1cd701dbbb682effbd3b8a8b3..ecbd59cc64026947382033f25ba400230f5d1e7b 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1837,6 +1837,10 @@ bool PepperPluginInstanceImpl::GetPrintPresetOptionsFromDocument(
break;
}
preset_options->copies = options.copies;
+ preset_options->isPageSizeUniform = PP_ToBool(options.is_page_size_uniform);
+ preset_options->uniformPageSize =
+ blink::WebSize(options.uniform_page_size.width,
+ options.uniform_page_size.height);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698