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

Unified Diff: Source/devtools/front_end/resources/ResourcesPanel.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
Index: Source/devtools/front_end/resources/ResourcesPanel.js
diff --git a/Source/devtools/front_end/resources/ResourcesPanel.js b/Source/devtools/front_end/resources/ResourcesPanel.js
index ce78b2f86f87ea65149cb7750b1e3d82b0b42dce..997b36c498216ea55ec210334ccfbc6dad612bb2 100644
--- a/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -144,7 +144,7 @@ WebInspector.ResourcesPanel.prototype = {
_initialize: function()
{
if (!this._initialized && this.isShowing() && this._cachedResourcesWereLoaded) {
- var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.activeTarget());
+ var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.mainTarget());
this._populateResourceTree();
this._populateDOMStorageTree();
this._populateApplicationCacheTree(target);
@@ -939,7 +939,7 @@ WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s
this._expandedSettingKey = "resources" + settingsKey + "Expanded";
WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.createSetting(this._expandedSettingKey, settingsKey === "Frames");
this._categoryName = categoryName;
- this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.activeTarget());
+ this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.mainTarget());
}
WebInspector.StorageCategoryTreeElement.prototype = {
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/sdk/CPUProfilerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698