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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 }, | 517 }, |
518 | 518 |
519 /** | 519 /** |
520 * @param {!WebInspector.Event} event | 520 * @param {!WebInspector.Event} event |
521 */ | 521 */ |
522 _inspectedURLChanged: function(event) | 522 _inspectedURLChanged: function(event) |
523 { | 523 { |
524 var nodes = this._uiSourceCodeNodes.values(); | 524 var nodes = this._uiSourceCodeNodes.values(); |
525 for (var i = 0; i < nodes.length; ++i) { | 525 for (var i = 0; i < nodes.length; ++i) { |
526 var uiSourceCode = nodes[i].uiSourceCode(); | 526 var uiSourceCode = nodes[i].uiSourceCode(); |
527 if (uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPage
URL()) | 527 if (WebInspector.resourceTreeModel.inspectedPageURL() && uiSourceCode
.url === WebInspector.resourceTreeModel.inspectedPageURL()) |
528 this.revealUISourceCode(uiSourceCode, true); | 528 this.revealUISourceCode(uiSourceCode, true); |
529 } | 529 } |
530 }, | 530 }, |
531 | 531 |
532 /** | 532 /** |
533 * @param {!WebInspector.UISourceCode} uiSourceCode | 533 * @param {!WebInspector.UISourceCode} uiSourceCode |
534 */ | 534 */ |
535 _addUISourceCode: function(uiSourceCode) | 535 _addUISourceCode: function(uiSourceCode) |
536 { | 536 { |
537 WebInspector.NavigatorView.prototype._addUISourceCode.call(this, uiSourc
eCode); | 537 WebInspector.NavigatorView.prototype._addUISourceCode.call(this, uiSourc
eCode); |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1414 |
1415 willRemoveChild: function(node) | 1415 willRemoveChild: function(node) |
1416 { | 1416 { |
1417 if (node._isMerged || !this.isPopulated()) | 1417 if (node._isMerged || !this.isPopulated()) |
1418 return; | 1418 return; |
1419 this._treeElement.removeChild(node._treeElement); | 1419 this._treeElement.removeChild(node._treeElement); |
1420 }, | 1420 }, |
1421 | 1421 |
1422 __proto__: WebInspector.NavigatorTreeNode.prototype | 1422 __proto__: WebInspector.NavigatorTreeNode.prototype |
1423 } | 1423 } |
OLD | NEW |