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

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

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase 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.html
diff --git a/tracing/tracing/ui/timeline_display_transform.html b/tracing/tracing/ui/timeline_display_transform.html
index 9f38f6a62ba388c7868e14af942b03c7c6700008..125def29a95e90f7ac04b909c2eccb736a19e2ce 100644
--- a/tracing/tracing/ui/timeline_display_transform.html
+++ b/tracing/tracing/ui/timeline_display_transform.html
@@ -34,8 +34,9 @@ tr.exportTo('tr.ui', function() {
equals: function(that) {
var eq = true;
- if (that === undefined || that === null)
+ if (that === undefined || that === null) {
return false;
+ }
eq &= this.panX === that.panX;
eq &= this.panY === that.panY;
eq &= this.scaleX === that.scaleX;
@@ -44,8 +45,9 @@ tr.exportTo('tr.ui', function() {
almostEquals: function(that) {
var eq = true;
- if (that === undefined || that === null)
+ if (that === undefined || that === null) {
return false;
+ }
eq &= Math.abs(this.panX - that.panX) < 0.001;
eq &= Math.abs(this.panY - that.panY) < 0.001;
eq &= Math.abs(this.scaleX - that.scaleX) < 0.001;
@@ -72,10 +74,11 @@ tr.exportTo('tr.ui', function() {
},
xPanWorldBoundsIntoView: function(worldMin, worldMax, viewWidth) {
- if (this.xWorldToView(worldMin) < 0)
+ if (this.xWorldToView(worldMin) < 0) {
this.xPanWorldPosToViewPos(worldMin, 'left', viewWidth);
- else if (this.xWorldToView(worldMax) > viewWidth)
+ } else if (this.xWorldToView(worldMax) > viewWidth) {
this.xPanWorldPosToViewPos(worldMax, 'right', viewWidth);
+ }
},
xSetWorldBounds: function(worldMin, worldMax, viewWidth) {
« no previous file with comments | « tracing/tracing/ui/side_panel/side_panel_container.html ('k') | tracing/tracing/ui/timeline_display_transform_animations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698