| Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
|
| index 404a6b609e72902129996f947b101b2ae69ce30b..ff1ce375b5b936c06ca4e353858119f9dd0841cf 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
|
| @@ -153,13 +153,16 @@ WebInspector.TimelineTreeView.prototype = {
|
| },
|
|
|
| /**
|
| - * @param {!Array.<!WebInspector.DataGrid.ColumnDescriptor>} columns
|
| + * @param {!Array<!WebInspector.DataGrid.ColumnDescriptor>} columns
|
| */
|
| _populateColumns: function(columns)
|
| {
|
| - columns.push({id: "self", title: WebInspector.UIString("Self Time"), width: "110px", fixedWidth: true, sortable: true});
|
| - columns.push({id: "total", title: WebInspector.UIString("Total Time"), width: "110px", fixedWidth: true, sortable: true});
|
| - columns.push({id: "activity", title: WebInspector.UIString("Activity"), disclosure: true, sortable: true});
|
| + var columnDescriptors = [
|
| + {id: "self", title: WebInspector.UIString("Self Time"), width: "110px", fixedWidth: true, sortable: true},
|
| + {id: "total", title: WebInspector.UIString("Total Time"), width: "110px", fixedWidth: true, sortable: true},
|
| + {id: "activity", title: WebInspector.UIString("Activity"), disclosure: true, sortable: true}];
|
| + for (var descriptor of columnDescriptors)
|
| + columns.push(/** @type {!WebInspector.DataGrid.ColumnDescriptor} */(descriptor));
|
| },
|
|
|
| _sortingChanged: function()
|
| @@ -898,7 +901,8 @@ WebInspector.EventsTimelineTreeView.prototype = {
|
| */
|
| _populateColumns: function(columns)
|
| {
|
| - columns.push({id: "startTime", title: WebInspector.UIString("Start Time"), width: "110px", fixedWidth: true, sortable: true});
|
| + var descriptors = [{id: "startTime", title: WebInspector.UIString("Start Time"), width: "110px", fixedWidth: true, sortable: true}];
|
| + columns.push(/** @type {!WebInspector.DataGrid.ColumnDescriptor} */(descriptors[0]));
|
| WebInspector.TimelineTreeView.prototype._populateColumns.call(this, columns);
|
| },
|
|
|
|
|