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 54b12a7f91d888f9b11685907072cbe73e56e947..79993bc920582fbf33b795540d3bc2585e382ef7 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js |
@@ -38,8 +38,9 @@ Timeline.TimelineTreeView = class extends UI.VBox { |
this.populateColumns(columns); |
this._splitWidget = new UI.SplitWidget(true, true, 'timelineTreeViewDetailsSplitWidget'); |
- const mainView = new UI.VBox(); |
- this._populateToolbar(mainView.element); |
+ var mainView = new UI.VBox(); |
+ var toolbar = new UI.Toolbar('', mainView.element); |
+ this._populateToolbar(toolbar); |
this._dataGrid = new DataGrid.SortableDataGrid(columns); |
this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, this._sortingChanged, this); |
@@ -93,9 +94,9 @@ Timeline.TimelineTreeView = class extends UI.VBox { |
} |
/** |
- * @param {!Element} parent |
+ * @param {!UI.Toolbar} toolbar |
*/ |
- _populateToolbar(parent) { |
+ _populateToolbar(toolbar) { |
} |
/** |
@@ -191,8 +192,8 @@ Timeline.TimelineTreeView = class extends UI.VBox { |
* @param {!Array<!DataGrid.DataGrid.ColumnDescriptor>} columns |
*/ |
populateColumns(columns) { |
- columns.push({id: 'self', title: Common.UIString('Self Time'), width: '110px', fixedWidth: true, sortable: true}); |
- columns.push({id: 'total', title: Common.UIString('Total Time'), width: '110px', fixedWidth: true, sortable: true}); |
+ columns.push({id: 'self', title: Common.UIString('Self Time'), width: '120px', fixedWidth: true, sortable: true}); |
+ columns.push({id: 'total', title: Common.UIString('Total Time'), width: '120px', fixedWidth: true, sortable: true}); |
columns.push({id: 'activity', title: Common.UIString('Activity'), disclosure: true, sortable: true}); |
} |
@@ -554,10 +555,9 @@ Timeline.AggregatedTimelineTreeView = class extends Timeline.TimelineTreeView { |
/** |
* @override |
- * @param {!Element} parent |
+ * @param {!UI.Toolbar} toolbar |
*/ |
- _populateToolbar(parent) { |
- var panelToolbar = new UI.Toolbar('', parent); |
+ _populateToolbar(toolbar) { |
this._groupByCombobox = new UI.ToolbarComboBox(this._onGroupByChanged.bind(this)); |
/** |
* @param {string} name |
@@ -578,9 +578,9 @@ Timeline.AggregatedTimelineTreeView = class extends Timeline.TimelineTreeView { |
addGroupingOption.call(this, Common.UIString('Group by Subdomain'), groupBy.Subdomain); |
addGroupingOption.call(this, Common.UIString('Group by URL'), groupBy.URL); |
addGroupingOption.call(this, Common.UIString('Group by Frame'), groupBy.Frame); |
- panelToolbar.appendToolbarItem(this._groupByCombobox); |
- panelToolbar.appendSpacer(); |
- panelToolbar.appendToolbarItem(this._splitWidget.createShowHideSidebarButton(Common.UIString('heaviest stack'))); |
+ toolbar.appendToolbarItem(this._groupByCombobox); |
+ toolbar.appendSpacer(); |
+ toolbar.appendToolbarItem(this._splitWidget.createShowHideSidebarButton(Common.UIString('heaviest stack'))); |
} |
/** |