| 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 4f0840693f62d6b158a34c963dcd69f2ce165b0b..d6255ed6274a6e21da5dd0235012efdc71c82698 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
|
| @@ -21,11 +21,8 @@ cr.define('print_preview.ticket_items', function() {
|
| */
|
| function HeaderFooter(appState, documentInfo, marginsType, customMargins) {
|
| print_preview.ticket_items.TicketItem.call(
|
| - this,
|
| - appState,
|
| - print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED,
|
| - null /*destinationStore*/,
|
| - documentInfo);
|
| + this, appState, print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED,
|
| + null /*destinationStore*/, documentInfo);
|
|
|
| /**
|
| * Ticket item that stores which predefined margins to print with.
|
| @@ -56,10 +53,12 @@ cr.define('print_preview.ticket_items', function() {
|
| isCapabilityAvailable: function() {
|
| if (!this.getDocumentInfoInternal().isModifiable) {
|
| return false;
|
| - } else if (this.marginsType_.getValue() ==
|
| + } else if (
|
| + this.marginsType_.getValue() ==
|
| print_preview.ticket_items.MarginsType.Value.NO_MARGINS) {
|
| return false;
|
| - } else if (this.marginsType_.getValue() ==
|
| + } else if (
|
| + this.marginsType_.getValue() ==
|
| print_preview.ticket_items.MarginsType.Value.MINIMUM) {
|
| return true;
|
| }
|
| @@ -74,9 +73,8 @@ cr.define('print_preview.ticket_items', function() {
|
| margins = this.getDocumentInfoInternal().margins;
|
| }
|
| var orientEnum = print_preview.ticket_items.CustomMargins.Orientation;
|
| - 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 */
|
| @@ -106,7 +104,5 @@ cr.define('print_preview.ticket_items', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - HeaderFooter: HeaderFooter
|
| - };
|
| + return {HeaderFooter: HeaderFooter};
|
| });
|
|
|