Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: tracing/tracing/ui/timeline_display_transform_animations.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698