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

Unified Diff: Source/devtools/front_end/sources/NavigatorView.js

Issue 485713002: DevTools: Use targetManager.inspectedPageUrl() instead of resourceTreeModel.inspectedPageUrl() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/sources/NavigatorView.js
diff --git a/Source/devtools/front_end/sources/NavigatorView.js b/Source/devtools/front_end/sources/NavigatorView.js
index ffcbc25f5874d34dae1de8b3b4429a989d738220..9f8a7e20bd8369e7aae5b0782d816691ffbe7fb9 100644
--- a/Source/devtools/front_end/sources/NavigatorView.js
+++ b/Source/devtools/front_end/sources/NavigatorView.js
@@ -524,7 +524,8 @@ WebInspector.SourcesNavigatorView.prototype = {
var nodes = this._uiSourceCodeNodes.values();
for (var i = 0; i < nodes.length; ++i) {
var uiSourceCode = nodes[i].uiSourceCode();
- if (WebInspector.resourceTreeModel.inspectedPageURL() && uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPageURL())
+ var inspectedPageURL = WebInspector.targetManager.inspectedPageURL();
+ if (inspectedPageURL && uiSourceCode.url === inspectedPageURL)
this.revealUISourceCode(uiSourceCode, true);
}
},
@@ -535,7 +536,7 @@ WebInspector.SourcesNavigatorView.prototype = {
_addUISourceCode: function(uiSourceCode)
{
WebInspector.NavigatorView.prototype._addUISourceCode.call(this, uiSourceCode);
- if (uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPageURL())
+ if (uiSourceCode.url === WebInspector.targetManager.inspectedPageURL())
this.revealUISourceCode(uiSourceCode, true);
},
@@ -600,7 +601,7 @@ WebInspector.NavigatorTreeOutline._treeElementsCompare = function compare(treeEl
{
var type = treeElement.type();
if (type === WebInspector.NavigatorTreeOutline.Types.Domain) {
- if (treeElement.titleText === WebInspector.resourceTreeModel.inspectedPageDomain())
+ if (treeElement.titleText === WebInspector.targetManager.inspectedPageDomain())
return 1;
return 2;
}
« Source/devtools/front_end/sdk/Target.js ('K') | « Source/devtools/front_end/sdk/Target.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698