Commit 7b34804c authored by yurys@chromium.org's avatar yurys@chromium.org

Update constructors view when switching perspectives

Constructors view is updated whenever allocation or summary perspective is selected.

BUG=277984
R=alph@chromium.org

Review URL: https://codereview.chromium.org/198833008

git-svn-id: svn://svn.chromium.org/blink/trunk@169524 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d946dc2d
......@@ -769,6 +769,13 @@ WebInspector.HeapSnapshotConstructorsDataGrid.prototype = {
this.snapshot.nodeClassName(parseInt(id, 10), didGetClassName.bind(this));
},
clear: function()
{
this._nextRequestedFilter = null;
this._lastFilter = null;
this.removeTopLevelNodes();
},
setDataSource: function(snapshot)
{
this.snapshot = snapshot;
......
......@@ -225,6 +225,7 @@ WebInspector.HeapSnapshotView.SummaryPerspective.prototype = {
if (heapSnapshotView._trackingOverviewGrid) {
heapSnapshotView._trackingOverviewGrid.show(heapSnapshotView.element, heapSnapshotView._splitView.element);
heapSnapshotView._trackingOverviewGrid.update();
heapSnapshotView._trackingOverviewGrid._updateGrid();
}
},
......@@ -386,6 +387,11 @@ WebInspector.HeapSnapshotView.AllocationPerspective.prototype = {
heapSnapshotView._retainmentView.show(heapSnapshotView._splitView.sidebarElement());
heapSnapshotView._splitView.show(this._allocationSplitView.sidebarElement());
this._allocationSplitView.show(heapSnapshotView.element);
heapSnapshotView._constructorsDataGrid.clear();
var selectedNode = heapSnapshotView._allocationDataGrid.selectedNode;
if (selectedNode)
heapSnapshotView._constructorsDataGrid.setAllocationNodeId(selectedNode.allocationNodeId());
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment