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

Unified Diff: Source/devtools/front_end/sdk/Target.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/sdk/StylesSourceMapping.js ('k') | Source/devtools/front_end/sdk/TempFile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/Target.js
diff --git a/Source/devtools/front_end/sdk/Target.js b/Source/devtools/front_end/sdk/Target.js
index 288d2f258647985cfcf11482606e6b99d752cccc..7d0c98327ce8a26d40e4de5800eee0ba975a51db 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -101,9 +101,6 @@ WebInspector.Target.prototype = {
{
/** @type {!WebInspector.ConsoleModel} */
this.consoleModel = new WebInspector.ConsoleModel(this);
- // This and similar lines are needed for compatibility.
- if (!WebInspector.consoleModel)
- WebInspector.consoleModel = this.consoleModel;
/** @type {!WebInspector.NetworkManager} */
this.networkManager = new WebInspector.NetworkManager(this);
@@ -324,7 +321,7 @@ WebInspector.TargetManager.prototype = {
/**
* @return {?WebInspector.Target}
*/
- activeTarget: function()
+ mainTarget: function()
{
return this._targets[0];
}
« no previous file with comments | « Source/devtools/front_end/sdk/StylesSourceMapping.js ('k') | Source/devtools/front_end/sdk/TempFile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698