| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 _applicationCacheNetworkStateChanged: function(event) | 717 _applicationCacheNetworkStateChanged: function(event) |
| 718 { | 718 { |
| 719 var isNowOnline = event.data; | 719 var isNowOnline = event.data; |
| 720 | 720 |
| 721 for (var manifestURL in this._applicationCacheViews) | 721 for (var manifestURL in this._applicationCacheViews) |
| 722 this._applicationCacheViews[manifestURL].updateNetworkState(isNowOnl
ine); | 722 this._applicationCacheViews[manifestURL].updateNetworkState(isNowOnl
ine); |
| 723 }, | 723 }, |
| 724 | 724 |
| 725 _findTreeElementForResource: function(resource) | 725 _findTreeElementForResource: function(resource) |
| 726 { | 726 { |
| 727 function isAncestor(ancestor, object) | |
| 728 { | |
| 729 // Redirects, XHRs do not belong to the tree, it is fine to silently
return false here. | |
| 730 return false; | |
| 731 } | |
| 732 | |
| 733 function getParent(object) | 727 function getParent(object) |
| 734 { | 728 { |
| 735 // Redirects, XHRs do not belong to the tree, it is fine to silently
return false here. | 729 // Redirects, XHRs do not belong to the tree, it is fine to silently
return false here. |
| 736 return null; | 730 return null; |
| 737 } | 731 } |
| 738 | 732 |
| 739 return this.sidebarTree.findTreeElement(resource, isAncestor, getParent)
; | 733 return this.sidebarTree.findTreeElement(resource, getParent); |
| 740 }, | 734 }, |
| 741 | 735 |
| 742 showView: function(view) | 736 showView: function(view) |
| 743 { | 737 { |
| 744 if (view) | 738 if (view) |
| 745 this.showResource(view.resource); | 739 this.showResource(view.resource); |
| 746 }, | 740 }, |
| 747 | 741 |
| 748 _onmousemove: function(event) | 742 _onmousemove: function(event) |
| 749 { | 743 { |
| (...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2124 } | 2118 } |
| 2125 | 2119 |
| 2126 WebInspector.StorageCategoryView.prototype = { | 2120 WebInspector.StorageCategoryView.prototype = { |
| 2127 setText: function(text) | 2121 setText: function(text) |
| 2128 { | 2122 { |
| 2129 this._emptyView.text = text; | 2123 this._emptyView.text = text; |
| 2130 }, | 2124 }, |
| 2131 | 2125 |
| 2132 __proto__: WebInspector.VBox.prototype | 2126 __proto__: WebInspector.VBox.prototype |
| 2133 } | 2127 } |
| OLD | NEW |