| Index: chrome/browser/resources/print_preview/print_preview.js
|
| diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
|
| index 8ed968c19c08ba37cf13953786297c71fbc0d55c..da5777c4f40a21e4052cbdd2976cceadc4d4775c 100644
|
| --- a/chrome/browser/resources/print_preview/print_preview.js
|
| +++ b/chrome/browser/resources/print_preview/print_preview.js
|
| @@ -16,6 +16,9 @@ var lastSelectedPrinterIndex = 0;
|
| // Used to disable some printing options when the preview is not modifiable.
|
| var previewModifiable = false;
|
|
|
| +// Used to identify whether the printing frame has specific page size style.
|
| +var hasPageSizeStyle = false;
|
| +
|
| // Destination list special value constants.
|
| const MANAGE_CLOUD_PRINTERS = 'manageCloudPrinters';
|
| const MANAGE_LOCAL_PRINTERS = 'manageLocalPrinters';
|
| @@ -827,7 +830,7 @@ function setPluginPreviewPageCount() {
|
| * Called from PrintPreviewUI::OnDidGetPreviewPageCount().
|
| * @param {number} pageCount The number of pages.
|
| * @param {number} previewResponseId The preview request id that resulted in
|
| - * this response.
|
| + * this response.
|
| */
|
| function onDidGetPreviewPageCount(pageCount, previewResponseId) {
|
| if (!isExpectedPreviewResponse(previewResponseId))
|
| @@ -842,8 +845,11 @@ function onDidGetPreviewPageCount(pageCount, previewResponseId) {
|
| /**
|
| * @param {printing::PageSizeMargins} pageLayout The default layout of the page
|
| * in points.
|
| + * @param {boolean} hasCustomPageSizeStyle Indicates whether the previewed
|
| + * document has a custom page size style.
|
| */
|
| -function onDidGetDefaultPageLayout(pageLayout) {
|
| +function onDidGetDefaultPageLayout(pageLayout, hasCustomPageSizeStyle) {
|
| + hasPageSizeStyle = hasCustomPageSizeStyle;
|
| marginSettings.currentDefaultPageLayout = new print_preview.PageLayout(
|
| pageLayout.contentWidth,
|
| pageLayout.contentHeight,
|
|
|