| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @param {!WebInspector.AnimationModel.AnimationGroup} model | 7 * @param {!WebInspector.AnimationModel.AnimationGroup} model |
| 8 */ | 8 */ |
| 9 WebInspector.AnimationGroupPreviewUI = function(model) | 9 WebInspector.AnimationGroupPreviewUI = function(model) |
| 10 { | 10 { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 var effect = this._model.animations()[i].source(); | 66 var effect = this._model.animations()[i].source(); |
| 67 var line = this._svg.createSVGChild("line"); | 67 var line = this._svg.createSVGChild("line"); |
| 68 line.setAttribute("x1", effect.delay() * timeToPixelRatio); | 68 line.setAttribute("x1", effect.delay() * timeToPixelRatio); |
| 69 line.setAttribute("x2", (effect.delay() + effect.duration()) * timeT
oPixelRatio); | 69 line.setAttribute("x2", (effect.delay() + effect.duration()) * timeT
oPixelRatio); |
| 70 var y = Math.floor(this._viewBoxHeight / Math.max(6, numberOfAnimati
ons) * i + 1); | 70 var y = Math.floor(this._viewBoxHeight / Math.max(6, numberOfAnimati
ons) * i + 1); |
| 71 line.setAttribute("y1", y); | 71 line.setAttribute("y1", y); |
| 72 line.setAttribute("y2", y); | 72 line.setAttribute("y2", y); |
| 73 line.style.stroke = WebInspector.AnimationUI.Color(this._model.anima
tions()[i]); | 73 line.style.stroke = WebInspector.AnimationUI.Color(this._model.anima
tions()[i]); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 } | 76 } |
| OLD | NEW |