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

Unified Diff: tracing/tracing/ui/tracks/letter_dot_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/letter_dot_track.html
diff --git a/tracing/tracing/ui/tracks/letter_dot_track.html b/tracing/tracing/ui/tracks/letter_dot_track.html
index ef28274961c32f261f6de8974ae6d12425fcf7b5..79c1f062fcbfd4c2250530126fe0296deeecb690 100644
--- a/tracing/tracing/ui/tracks/letter_dot_track.html
+++ b/tracing/tracing/ui/tracks/letter_dot_track.html
@@ -80,8 +80,8 @@ tr.exportTo('tr.ui.tracks', function() {
},
draw: function(type, viewLWorld, viewRWorld) {
- if (this.items_ === undefined)
- return;
+ if (this.items_ === undefined) return;
+
switch (type) {
case tr.ui.tracks.DrawType.GENERAL_EVENT:
this.drawLetterDots_(viewLWorld, viewRWorld);
@@ -120,10 +120,10 @@ tr.exportTo('tr.ui.tracks', function() {
for (var i = loI; i < items.length; ++i) {
var item = items[i];
var x = item.start;
- if (x - itemRadiusWorld > viewRWorld)
- break;
- if (item.selected !== selected)
- continue;
+ if (x - itemRadiusWorld > viewRWorld) break;
+
+ if (item.selected !== selected) continue;
+
var xView = dt.xWorldToView(x);
ctx.fillStyle = EventPresenter.getSelectableItemColorAsString(item);
@@ -161,8 +161,7 @@ tr.exportTo('tr.ui.tracks', function() {
},
addEventsToTrackMap: function(eventToTrackMap) {
- if (this.items_ === undefined)
- return;
+ if (this.items_ === undefined) return;
this.items_.forEach(function(item) {
item.addToTrackMap(eventToTrackMap, this);
@@ -171,8 +170,7 @@ tr.exportTo('tr.ui.tracks', function() {
addIntersectingEventsInRangeToSelectionInWorldSpace: function(
loWX, hiWX, viewPixWidthWorld, selection) {
- if (this.items_ === undefined)
- return;
+ if (this.items_ === undefined) return;
var itemRadiusWorld = viewPixWidthWorld * this.dumpRadiusView;
tr.b.math.iterateOverIntersectingIntervals(
@@ -196,15 +194,13 @@ tr.exportTo('tr.ui.tracks', function() {
* @private
*/
addEventNearToProvidedEventToSelection: function(event, offset, selection) {
- if (this.items_ === undefined)
- return;
+ if (this.items_ === undefined) return;
var items = this.items_;
var index = tr.b.findFirstIndexInArray(items, function(item) {
return item.modelItem === event;
});
- if (index === -1)
- return false;
+ if (index === -1) return false;
var newIndex = index + offset;
if (newIndex >= 0 && newIndex < items.length) {
@@ -219,8 +215,7 @@ tr.exportTo('tr.ui.tracks', function() {
addClosestEventToSelection: function(worldX, worldMaxDist, loY, hiY,
selection) {
- if (this.items_ === undefined)
- return;
+ if (this.items_ === undefined) return;
var item = tr.b.math.findClosestElementInSortedArray(
this.items_,
@@ -228,8 +223,7 @@ tr.exportTo('tr.ui.tracks', function() {
worldX,
worldMaxDist);
- if (!item)
- return;
+ if (!item) return;
item.addToSelection(selection);
}
« no previous file with comments | « tracing/tracing/ui/tracks/kernel_track.html ('k') | tracing/tracing/ui/tracks/memory_dump_track_test_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698