Index: Source/devtools/front_end/LayerTreeModel.js |
diff --git a/Source/devtools/front_end/LayerTreeModel.js b/Source/devtools/front_end/LayerTreeModel.js |
index 16292f3fb60acbd6ea5324e3f2f793d4d73cebc6..e4922bb1369f6543258fd2aa568d2e3179a3f409 100644 |
--- a/Source/devtools/front_end/LayerTreeModel.js |
+++ b/Source/devtools/front_end/LayerTreeModel.js |
@@ -109,6 +109,15 @@ WebInspector.LayerTreeModel.prototype = { |
}, |
/** |
+ * @param {string} id |
+ * @return {WebInspector.Layer?} |
+ */ |
+ layerById: function(id) |
+ { |
+ return this._layersById[id]; |
+ }, |
+ |
+ /** |
* @param{Array.<LayerTreeAgent.Layer>} payload |
*/ |
_repopulate: function(payload) |