| Index: chrome/browser/resources/print_preview/previewarea/margin_control.js
|
| diff --git a/chrome/browser/resources/print_preview/previewarea/margin_control.js b/chrome/browser/resources/print_preview/previewarea/margin_control.js
|
| index 061a989d311279ea6581cf2949db22f0e29c217b..1ed6211c90503c5f81df656083e15b2e0ab01249 100644
|
| --- a/chrome/browser/resources/print_preview/previewarea/margin_control.js
|
| +++ b/chrome/browser/resources/print_preview/previewarea/margin_control.js
|
| @@ -307,8 +307,8 @@ cr.define('print_preview', function() {
|
|
|
| /** @override */
|
| createDom: function() {
|
| - this.setElementInternal(this.cloneTemplateInternal(
|
| - 'margin-control-template'));
|
| + this.setElementInternal(
|
| + this.cloneTemplateInternal('margin-control-template'));
|
| this.getElement().classList.add('margin-control-' + this.orientation_);
|
| this.textbox_ = this.getElement().getElementsByClassName(
|
| MarginControl.Classes_.TEXTBOX)[0];
|
| @@ -324,11 +324,9 @@ cr.define('print_preview', function() {
|
| this.tracker.add(
|
| this.getElement(), 'mousedown', this.onMouseDown_.bind(this));
|
| this.tracker.add(
|
| - this.getElement(),
|
| - 'webkitTransitionEnd',
|
| + this.getElement(), 'webkitTransitionEnd',
|
| this.onWebkitTransitionEnd_.bind(this));
|
| - this.tracker.add(
|
| - this.textbox_, 'input', this.onTextboxInput_.bind(this));
|
| + this.tracker.add(this.textbox_, 'input', this.onTextboxInput_.bind(this));
|
| this.tracker.add(
|
| this.textbox_, 'keydown', this.onTextboxKeyDown_.bind(this));
|
| this.tracker.add(
|
| @@ -368,10 +366,9 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| onMouseDown_: function(event) {
|
| - if (!this.textbox_.disabled &&
|
| - event.button == 0 &&
|
| + if (!this.textbox_.disabled && event.button == 0 &&
|
| (event.target == this.getElement() ||
|
| - event.target == this.marginLineEl_)) {
|
| + event.target == this.marginLineEl_)) {
|
| this.mouseStartPositionInPixels_ =
|
| new print_preview.Coordinate2d(event.x, event.y);
|
| this.marginStartPositionInPixels_ = new print_preview.Coordinate2d(
|
| @@ -447,7 +444,5 @@ cr.define('print_preview', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - MarginControl: MarginControl
|
| - };
|
| + return {MarginControl: MarginControl};
|
| });
|
|
|