| Index: chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
|
| diff --git a/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js b/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
|
| index 9cb9e9c7d6b6861fc178610fa6e540211d62653c..b144537bbd4da207f991818fba3c1b9d84d751ef 100644
|
| --- a/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
|
| +++ b/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
|
| @@ -23,14 +23,12 @@ cr.define('print_preview.ticket_items', function() {
|
| * @constructor
|
| * @extends {print_preview.ticket_items.TicketItem}
|
| */
|
| - function HeaderFooter(appState, documentInfo, marginsType, customMargins,
|
| - mediaSize, landscape) {
|
| + function HeaderFooter(
|
| + appState, documentInfo, marginsType, customMargins, mediaSize,
|
| + landscape) {
|
| print_preview.ticket_items.TicketItem.call(
|
| - this,
|
| - appState,
|
| - print_preview.AppStateField.IS_HEADER_FOOTER_ENABLED,
|
| - null /*destinationStore*/,
|
| - documentInfo);
|
| + this, appState, print_preview.AppStateField.IS_HEADER_FOOTER_ENABLED,
|
| + null /*destinationStore*/, documentInfo);
|
|
|
| /**
|
| * Ticket item that stores which predefined margins to print with.
|
| @@ -86,8 +84,8 @@ cr.define('print_preview.ticket_items', function() {
|
| return false;
|
| }
|
| var microns = this.landscape_.getValue() ?
|
| - this.mediaSize_.getValue().width_microns :
|
| - this.mediaSize_.getValue().height_microns;
|
| + this.mediaSize_.getValue().width_microns :
|
| + this.mediaSize_.getValue().height_microns;
|
| if (microns < HeaderFooter.MINIMUM_HEIGHT_MICRONS_) {
|
| // If this is a small paper size, there is not space for headers
|
| // and footers regardless of the margins.
|
| @@ -108,9 +106,8 @@ cr.define('print_preview.ticket_items', function() {
|
| margins = this.getDocumentInfoInternal().margins;
|
| }
|
| var orientEnum = print_preview.ticket_items.CustomMarginsOrientation;
|
| - return margins == null ||
|
| - margins.get(orientEnum.TOP) > 0 ||
|
| - margins.get(orientEnum.BOTTOM) > 0;
|
| + return margins == null || margins.get(orientEnum.TOP) > 0 ||
|
| + margins.get(orientEnum.BOTTOM) > 0;
|
| },
|
|
|
| /** @override */
|
| @@ -148,7 +145,5 @@ cr.define('print_preview.ticket_items', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - HeaderFooter: HeaderFooter
|
| - };
|
| + return {HeaderFooter: HeaderFooter};
|
| });
|
|
|