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 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2482 case "initiator": this._renderInitiatorCell(cell); break; | 2482 case "initiator": this._renderInitiatorCell(cell); break; |
2483 case "size": this._renderSizeCell(cell); break; | 2483 case "size": this._renderSizeCell(cell); break; |
2484 case "time": this._renderTimeCell(cell); break; | 2484 case "time": this._renderTimeCell(cell); break; |
2485 default: cell.setTextAndTitle(this._request.responseHeaderValue(columnId
entifier) || ""); break; | 2485 default: cell.setTextAndTitle(this._request.responseHeaderValue(columnId
entifier) || ""); break; |
2486 } | 2486 } |
2487 | 2487 |
2488 return cell; | 2488 return cell; |
2489 }, | 2489 }, |
2490 | 2490 |
2491 /** | 2491 /** |
2492 * @param array {?Array} | 2492 * @param {?Array} array |
2493 * @return {string} | 2493 * @return {string} |
2494 */ | 2494 */ |
2495 _arrayLength: function(array) | 2495 _arrayLength: function(array) |
2496 { | 2496 { |
2497 return array ? "" + array.length : ""; | 2497 return array ? "" + array.length : ""; |
2498 }, | 2498 }, |
2499 | 2499 |
2500 wasDetached: function() | 2500 wasDetached: function() |
2501 { | 2501 { |
2502 this._linkifier.reset(); | 2502 this._linkifier.reset(); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2919 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) | 2919 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) |
2920 { | 2920 { |
2921 var aValue = a._request[propertyName]; | 2921 var aValue = a._request[propertyName]; |
2922 var bValue = b._request[propertyName]; | 2922 var bValue = b._request[propertyName]; |
2923 if (aValue > bValue) | 2923 if (aValue > bValue) |
2924 return revert ? -1 : 1; | 2924 return revert ? -1 : 1; |
2925 if (bValue > aValue) | 2925 if (bValue > aValue) |
2926 return revert ? 1 : -1; | 2926 return revert ? 1 : -1; |
2927 return 0; | 2927 return 0; |
2928 } | 2928 } |
OLD | NEW |