| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return !uiSourceCode.isFromServiceProject(); | 183 return !uiSourceCode.isFromServiceProject(); |
| 184 }, | 184 }, |
| 185 | 185 |
| 186 /** | 186 /** |
| 187 * @param {!WebInspector.UISourceCode} uiSourceCode | 187 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 188 * @return {?WebInspector.ResourceTreeFrame} | 188 * @return {?WebInspector.ResourceTreeFrame} |
| 189 */ | 189 */ |
| 190 _uiSourceCodeFrame: function(uiSourceCode) | 190 _uiSourceCodeFrame: function(uiSourceCode) |
| 191 { | 191 { |
| 192 var target = WebInspector.NetworkProject.targetForProject(uiSourceCode.p
roject()); | 192 var target = WebInspector.NetworkProject.targetForProject(uiSourceCode.p
roject()); |
| 193 if (!target) | 193 var resourceTreeModel = target && WebInspector.ResourceTreeModel.fromTar
get(target); |
| 194 if (!resourceTreeModel) |
| 194 return null; | 195 return null; |
| 195 return WebInspector.NetworkProject.frameForProject(uiSourceCode.project(
)) || target.resourceTreeModel.mainFrame; | 196 return WebInspector.NetworkProject.frameForProject(uiSourceCode.project(
)) || resourceTreeModel.mainFrame; |
| 196 }, | 197 }, |
| 197 | 198 |
| 198 /** | 199 /** |
| 199 * @param {!WebInspector.UISourceCode} uiSourceCode | 200 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 200 */ | 201 */ |
| 201 _addUISourceCode: function(uiSourceCode) | 202 _addUISourceCode: function(uiSourceCode) |
| 202 { | 203 { |
| 203 if (!this.accept(uiSourceCode)) | 204 if (!this.accept(uiSourceCode)) |
| 204 return; | 205 return; |
| 205 | 206 |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 { | 1565 { |
| 1565 if (this._treeElement) | 1566 if (this._treeElement) |
| 1566 return this._treeElement; | 1567 return this._treeElement; |
| 1567 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na
vigatorView, this._type, this._title, this._hoverCallback); | 1568 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na
vigatorView, this._type, this._title, this._hoverCallback); |
| 1568 this._treeElement.setNode(this); | 1569 this._treeElement.setNode(this); |
| 1569 return this._treeElement; | 1570 return this._treeElement; |
| 1570 }, | 1571 }, |
| 1571 | 1572 |
| 1572 __proto__: WebInspector.NavigatorTreeNode.prototype | 1573 __proto__: WebInspector.NavigatorTreeNode.prototype |
| 1573 } | 1574 } |
| OLD | NEW |