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

Unified Diff: Source/devtools/front_end/layers/LayersPanel.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/devtools/front_end/host/InspectorFrontendHost.js ('k') | Source/devtools/front_end/main/App.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/layers/LayersPanel.js
diff --git a/Source/devtools/front_end/layers/LayersPanel.js b/Source/devtools/front_end/layers/LayersPanel.js
index 24d0cf034df2567c79c59715d9de66e0afed39dc..2e7e82b45b14c5f470b432d1cb69b1d01958232e 100644
--- a/Source/devtools/front_end/layers/LayersPanel.js
+++ b/Source/devtools/front_end/layers/LayersPanel.js
@@ -44,7 +44,7 @@ WebInspector.LayersPanel = function()
this.sidebarElement().classList.add("outline-disclosure");
this.sidebarTree.element.classList.remove("sidebar-tree");
- this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.activeTarget());
+ this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.mainTarget());
this._model = new WebInspector.LayerTreeModel(this._target);
this._model.addEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, this._onLayerTreeUpdated, this);
this._model.addEventListener(WebInspector.LayerTreeModel.Events.LayerPainted, this._onLayerPainted, this);
« no previous file with comments | « Source/devtools/front_end/host/InspectorFrontendHost.js ('k') | Source/devtools/front_end/main/App.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698