| 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 824b5dc24883aca377b410cb559574775e2ee582..ed6eb9febfc1255d167b50b432f06f312c11a1a6 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';
|
| @@ -822,12 +825,16 @@ 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.
|
| + * @param {boolean} hasCustomPageSizeStyle Indicates whether the previewed
|
| + * document has a custom page size style.
|
| */
|
| -function onDidGetPreviewPageCount(pageCount, previewResponseId) {
|
| +function onDidGetPreviewPageCount(pageCount, previewResponseId,
|
| + hasCustomPageSizeStyle) {
|
| if (!isExpectedPreviewResponse(previewResponseId))
|
| return;
|
| pageSettings.updateState(pageCount);
|
| + hasPageSizeStyle = hasCustomPageSizeStyle;
|
| if (!previewModifiable && pageSettings.requestPrintPreviewIfNeeded())
|
| return;
|
|
|
|
|