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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/raster_task_view.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/extras/chrome/cc/raster_task_view.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/raster_task_view.html b/tracing/tracing/ui/extras/chrome/cc/raster_task_view.html
index 08225798331883a40227c286245321f8a9fd96a9..c8d40b3983dd32d1b6e6adfc3e77d60807cce438 100644
--- a/tracing/tracing/ui/extras/chrome/cc/raster_task_view.html
+++ b/tracing/tracing/ui/extras/chrome/cc/raster_task_view.html
@@ -60,8 +60,7 @@ Polymer({
{
title: 'Layer',
value: function(row) {
- if (row.isTotals)
- return 'Totals';
+ if (row.isTotals) return 'Totals';
if (row.layer) {
var linkEl = document.createElement('tr-ui-a-analysis-link');
linkEl.setSelectionAndContent(
@@ -112,13 +111,15 @@ Polymer({
}
var colWidthPercentage;
- if (columns.length === 1)
+ if (columns.length === 1) {
colWidthPercentage = '100%';
- else
+ } else {
colWidthPercentage = (100 / (columns.length - 1)).toFixed(3) + '%';
+ }
- for (var i = 1; i < columns.length; i++)
+ for (var i = 1; i < columns.length; i++) {
columns[i].width = colWidthPercentage;
+ }
this.$.content.tableColumns = columns;
this.$.content.sortColumnIndex = columns.length - 1;
@@ -147,10 +148,12 @@ Polymer({
var layerId = tile.layerId;
var lthi = tile.containingSnapshot;
var layer;
- if (lthi.activeTree)
+ if (lthi.activeTree) {
layer = lthi.activeTree.findLayerWithId(layerId);
- if (layer === undefined && lthi.pendingTree)
+ }
+ if (layer === undefined && lthi.pendingTree) {
layer = lthi.pendingTree.findLayerWithId(layerId);
+ }
if (costsByLayerId[layerId] === undefined) {
costsByLayerId[layerId] = {
layerId: layerId,
« no previous file with comments | « tracing/tracing/ui/extras/chrome/cc/raster_task_selection.html ('k') | tracing/tracing/ui/extras/chrome/cc/selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698