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

Unified Diff: tracing/tracing/ui/tracks/container_track.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/tracks/container_track.html
diff --git a/tracing/tracing/ui/tracks/container_track.html b/tracing/tracing/ui/tracks/container_track.html
index 2f3388de36e95bcb91ac0cb5c1a70a77f8bca235..7139b86ee303584cd030611cffbb54cb6f13bec7 100644
--- a/tracing/tracing/ui/tracks/container_track.html
+++ b/tracing/tracing/ui/tracks/container_track.html
@@ -35,8 +35,9 @@ tr.exportTo('tr.ui.tracks', function() {
get tracks_() {
var tracks = [];
for (var i = 0; i < this.children.length; i++) {
- if (this.children[i] instanceof tr.ui.tracks.Track)
+ if (this.children[i] instanceof tr.ui.tracks.Track) {
tracks.push(this.children[i]);
+ }
}
return tracks;
},
@@ -65,9 +66,10 @@ tr.exportTo('tr.ui.tracks', function() {
var trackClientRect = this.tracks_[i].getBoundingClientRect();
var a = Math.max(loY, trackClientRect.top);
var b = Math.min(hiY, trackClientRect.bottom);
- if (a <= b)
+ if (a <= b) {
this.tracks_[i].addIntersectingEventsInRangeToSelection(
loVX, hiVX, loY, hiY, selection);
+ }
}
tr.ui.tracks.Track.prototype.addIntersectingEventsInRangeToSelection.
@@ -81,9 +83,10 @@ tr.exportTo('tr.ui.tracks', function() {
},
addAllEventsMatchingFilterToSelection: function(filter, selection) {
- for (var i = 0; i < this.tracks_.length; i++)
+ for (var i = 0; i < this.tracks_.length; i++) {
this.tracks_[i].addAllEventsMatchingFilterToSelection(
filter, selection);
+ }
},
addAllEventsMatchingFilterToSelectionAsTask: function(filter, selection) {
« no previous file with comments | « tracing/tracing/ui/tracks/container_to_track_map.html ('k') | tracing/tracing/ui/tracks/counter_track_perf_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698