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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 2646193003: Revert of Fix UI glitches on Performance and Memory panels (Closed)
Patch Set: Created 3 years, 11 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: 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 221b59e91fb2dc5607c2713930245570425dc11c..01c4be1798c48c0b36f21aab4569b87a67046b88 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
@@ -32,27 +32,26 @@
this._filters = filters.slice();
- const columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([]);
+ var columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([]);
this._populateColumns(columns);
- this._splitWidget = new UI.SplitWidget(true, true, 'timelineTreeViewDetailsSplitWidget');
- const mainView = new UI.VBox();
+ var mainView = new UI.VBox();
this._populateToolbar(mainView.element);
-
this._dataGrid = new DataGrid.SortableDataGrid(columns);
this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, this._sortingChanged, this);
this._dataGrid.element.addEventListener('mousemove', this._onMouseMove.bind(this), true);
this._dataGrid.setResizeMethod(DataGrid.DataGrid.ResizeMethod.Last);
this._dataGrid.setRowContextMenuCallback(this._onContextMenu.bind(this));
this._dataGrid.asWidget().show(mainView.element);
- this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, this._updateDetailsForSelection, this);
+
+ this._splitWidget = new UI.SplitWidget(true, true, 'timelineTreeViewDetailsSplitWidget');
+ this._splitWidget.show(this.element);
+ this._splitWidget.setMainWidget(mainView);
this._detailsView = new UI.VBox();
this._detailsView.element.classList.add('timeline-details-view', 'timeline-details-view-body');
- this._splitWidget.setMainWidget(mainView);
this._splitWidget.setSidebarWidget(this._detailsView);
- this._splitWidget.hideSidebar();
- this._splitWidget.show(this.element);
+ this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, this._updateDetailsForSelection, this);
/** @type {?TimelineModel.TimelineProfileTree.Node|undefined} */
this._lastSelectedNode;
@@ -564,8 +563,6 @@
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')));
}
/**

Powered by Google App Engine
This is Rietveld 408576698