OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * The overlay displaying the image. | 8 * The overlay displaying the image. |
9 * | 9 * |
10 * @param {HTMLElement} container The container element. | 10 * @param {HTMLElement} container The container element. |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 | 1058 |
1059 /** | 1059 /** |
1060 * @param {HTMLCanvasElement|HTMLVideoElement} element Element. | 1060 * @param {HTMLCanvasElement|HTMLVideoElement} element Element. |
1061 * @return {string} Transform string. | 1061 * @return {string} Transform string. |
1062 */ | 1062 */ |
1063 ImageView.Effect.Rotate.prototype.transform = function(element) { | 1063 ImageView.Effect.Rotate.prototype.transform = function(element) { |
1064 var ratio = ImageView.Effect.getPixelRatio_(element); | 1064 var ratio = ImageView.Effect.getPixelRatio_(element); |
1065 return 'rotate(' + (this.rotate90_ * 90) + 'deg) ' + | 1065 return 'rotate(' + (this.rotate90_ * 90) + 'deg) ' + |
1066 'scale(' + (this.scale_ / ratio) + ')'; | 1066 'scale(' + (this.scale_ / ratio) + ')'; |
1067 }; | 1067 }; |
OLD | NEW |