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

Unified Diff: tracing/tracing/ui/tracks/drawing_container.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/drawing_container.html
diff --git a/tracing/tracing/ui/tracks/drawing_container.html b/tracing/tracing/ui/tracks/drawing_container.html
index 75635811fff027566e8db22f3cfbe2289d37c709..35081d59171256bb3274d52e8925f53a483e07ff 100644
--- a/tracing/tracing/ui/tracks/drawing_container.html
+++ b/tracing/tracing/ui/tracks/drawing_container.html
@@ -88,8 +88,8 @@ tr.exportTo('tr.ui.tracks', function() {
},
invalidate: function() {
- if (this.rafPending_)
- return;
+ if (this.rafPending_) return;
+
this.rafPending_ = true;
tr.b.requestPreAnimationFrame(this.preDraw_, this);
@@ -118,8 +118,9 @@ tr.exportTo('tr.ui.tracks', function() {
for (var idx in typesToDraw) {
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)) {
continue;
+ }
this.children[i].drawTrack(typesToDraw[idx]);
}
}
@@ -190,16 +191,17 @@ tr.exportTo('tr.ui.tracks', function() {
},
visibleFilter_: function(element) {
- if (!(element instanceof tr.ui.tracks.Track))
- return false;
+ if (!(element instanceof tr.ui.tracks.Track)) return false;
+
return window.getComputedStyle(element).display !== 'none';
},
addClosestEventToSelection: function(
worldX, worldMaxDist, loY, hiY, selection) {
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)) {
continue;
+ }
var trackClientRect = this.children[i].getBoundingClientRect();
var a = Math.max(loY, trackClientRect.top);
var b = Math.min(hiY, trackClientRect.bottom);
@@ -215,8 +217,9 @@ tr.exportTo('tr.ui.tracks', function() {
addEventsToTrackMap: function(eventToTrackMap) {
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)) {
continue;
+ }
this.children[i].addEventsToTrackMap(eventToTrackMap);
}
}
« no previous file with comments | « tracing/tracing/ui/tracks/cpu_usage_track_test.html ('k') | tracing/tracing/ui/tracks/drawing_container_perf_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698