| Index: Source/devtools/front_end/LayersPanel.js
|
| diff --git a/Source/devtools/front_end/LayersPanel.js b/Source/devtools/front_end/LayersPanel.js
|
| index 577245a60b8925f9b5f248898dedaa0b76b7c021..c280ecdda9a1b55b67dcd2ff38a3aead45740af0 100644
|
| --- a/Source/devtools/front_end/LayersPanel.js
|
| +++ b/Source/devtools/front_end/LayersPanel.js
|
| @@ -101,6 +101,14 @@ WebInspector.LayersPanel.prototype = {
|
| this._model.setSnapshot(snapshot);
|
| },
|
|
|
| + /**
|
| + * @param {!WebInspector.TracingLayerSnapshot} snapshot
|
| + */
|
| + _showTracingSnapshot: function(snapshot)
|
| + {
|
| + this._model.setTracingSnapshot(snapshot);
|
| + },
|
| +
|
| _onLayerTreeUpdated: function()
|
| {
|
| if (this._currentlySelectedLayer && !this._model.layerById(this._currentlySelectedLayer.id()))
|
| @@ -185,11 +193,13 @@ WebInspector.LayersPanel.LayerTreeRevealer = function()
|
|
|
| WebInspector.LayersPanel.LayerTreeRevealer.prototype = {
|
| /**
|
| - * @param {!Object} layerTree
|
| + * @param {!Object} snapshotData
|
| */
|
| - reveal: function(layerTree)
|
| + reveal: function(snapshotData)
|
| {
|
| - if (layerTree instanceof WebInspector.LayerTreeSnapshot)
|
| - /** @type {!WebInspector.LayersPanel} */ (WebInspector.inspectorView.showPanel("layers"))._showSnapshot(layerTree);
|
| + if (snapshotData instanceof WebInspector.LayerTreeSnapshot)
|
| + /** @type {!WebInspector.LayersPanel} */ (WebInspector.inspectorView.showPanel("layers"))._showSnapshot(snapshotData);
|
| + else if (snapshotData instanceof WebInspector.TracingLayerSnapshot)
|
| + /** @type {!WebInspector.LayersPanel} */ (WebInspector.inspectorView.showPanel("layers"))._showTracingSnapshot(snapshotData);
|
| }
|
| }
|
|
|