OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. 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 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 }, | 1442 }, |
1443 | 1443 |
1444 /** | 1444 /** |
1445 * @param {WebInspector.ContextMenu} contextMenu | 1445 * @param {WebInspector.ContextMenu} contextMenu |
1446 * @param {Object} target | 1446 * @param {Object} target |
1447 */ | 1447 */ |
1448 appendApplicableItems: function(contextMenu, target) | 1448 appendApplicableItems: function(contextMenu, target) |
1449 { | 1449 { |
1450 if (!(target instanceof WebInspector.NetworkRequest)) | 1450 if (!(target instanceof WebInspector.NetworkRequest)) |
1451 return; | 1451 return; |
| 1452 if (this.visibleView && this.visibleView.isShowing() && this.visibleView
.request() === target) |
| 1453 return; |
1452 | 1454 |
1453 function reveal() | 1455 function reveal() |
1454 { | 1456 { |
1455 WebInspector.inspectorView.setCurrentPanel(this); | 1457 WebInspector.inspectorView.setCurrentPanel(this); |
1456 this.revealAndHighlightRequest(/** @type {WebInspector.NetworkReques
t} */ target); | 1458 this.revealAndHighlightRequest(/** @type {WebInspector.NetworkReques
t} */ target); |
1457 } | 1459 } |
1458 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe
nuTitles() ? "Reveal in network panel" : "Reveal in Network Panel"), reveal.bind
(this)); | 1460 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe
nuTitles() ? "Reveal in network panel" : "Reveal in Network Panel"), reveal.bind
(this)); |
1459 } | 1461 } |
1460 } | 1462 } |
1461 | 1463 |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 var aValue = a._request[propertyName]; | 2138 var aValue = a._request[propertyName]; |
2137 var bValue = b._request[propertyName]; | 2139 var bValue = b._request[propertyName]; |
2138 if (aValue > bValue) | 2140 if (aValue > bValue) |
2139 return revert ? -1 : 1; | 2141 return revert ? -1 : 1; |
2140 if (bValue > aValue) | 2142 if (bValue > aValue) |
2141 return revert ? 1 : -1; | 2143 return revert ? 1 : -1; |
2142 return 0; | 2144 return 0; |
2143 } | 2145 } |
2144 | 2146 |
2145 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode
.prototype; | 2147 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode
.prototype; |
OLD | NEW |