Index: tracing/tracing/ui/timeline_display_transform_animations.html |
diff --git a/tracing/tracing/ui/timeline_display_transform_animations.html b/tracing/tracing/ui/timeline_display_transform_animations.html |
index a1f5ecff9b15209f6e53d9802d5aeacb3b422174..29bdfffde27321fb6fa2bf90023fabd2ebb9e406 100644 |
--- a/tracing/tracing/ui/timeline_display_transform_animations.html |
+++ b/tracing/tracing/ui/timeline_display_transform_animations.html |
@@ -26,10 +26,11 @@ tr.exportTo('tr.ui', function() { |
deltaX, deltaY, opt_durationMs) { |
this.deltaX = deltaX; |
this.deltaY = deltaY; |
- if (opt_durationMs === undefined) |
+ if (opt_durationMs === undefined) { |
this.durationMs = kDefaultPanAnimationDurationMs; |
- else |
+ } else { |
this.durationMs = opt_durationMs; |
+ } |
this.startPanX = undefined; |
this.startPanY = undefined; |
@@ -70,8 +71,9 @@ tr.exportTo('tr.ui', function() { |
percentDone = tr.b.clamp(percentDone, 0, 1); |
target.panX = tr.b.lerp(percentDone, this.startPanX, this.goalPanX); |
- if (this.affectsPanY) |
+ if (this.affectsPanY) { |
target.panY = tr.b.lerp(percentDone, this.startPanY, this.goalPanY); |
+ } |
return timestamp >= this.startTimeMs + this.durationMs; |
}, |
@@ -115,10 +117,11 @@ tr.exportTo('tr.ui', function() { |
this.goalFocalPointXView = goalFocalPointXView; |
this.goalFocalPointY = goalFocalPointY; |
this.zoomInRatioX = zoomInRatioX; |
- if (opt_durationMs === undefined) |
+ if (opt_durationMs === undefined) { |
this.durationMs = kDefaultPanAnimationDurationMs; |
- else |
+ } else { |
this.durationMs = opt_durationMs; |
+ } |
this.startTimeMs = undefined; |
this.startScaleX = undefined; |