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) { |