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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 nodeSelfHeight: function() | 68 nodeSelfHeight: function() |
69 { | 69 { |
70 return this._parentView.rowHeight(); | 70 return this._parentView.rowHeight(); |
71 }, | 71 }, |
72 | 72 |
73 /** | 73 /** |
74 * @override | 74 * @override |
75 */ | 75 */ |
76 createCells: function() | 76 createCells: function() |
77 { | 77 { |
78 this._showTiming = !WebInspector.moduleSetting("networkColorCodeResource
Types").get() && !this._parentView.calculator().startAtZero; | 78 this._showTiming = !WebInspector.moduleSetting("networkColorCodeResource
Types").get(); |
79 this._nameCell = null; | 79 this._nameCell = null; |
80 this._timelineCell = null; | 80 this._timelineCell = null; |
81 this._initiatorCell = null; | 81 this._initiatorCell = null; |
82 | 82 |
83 this._element.classList.toggle("network-error-row", this._isFailed()); | 83 this._element.classList.toggle("network-error-row", this._isFailed()); |
84 this._element.classList.toggle("network-navigation-row", this._isNavigat
ionRequest); | 84 this._element.classList.toggle("network-navigation-row", this._isNavigat
ionRequest); |
85 WebInspector.SortableDataGridNode.prototype.createCells.call(this); | 85 WebInspector.SortableDataGridNode.prototype.createCells.call(this); |
86 | 86 |
87 this._updateGraph(); | 87 this._updateGraph(); |
88 }, | 88 }, |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) | 648 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) |
649 { | 649 { |
650 var aValue = a._request[propertyName]; | 650 var aValue = a._request[propertyName]; |
651 var bValue = b._request[propertyName]; | 651 var bValue = b._request[propertyName]; |
652 if (aValue > bValue) | 652 if (aValue > bValue) |
653 return revert ? -1 : 1; | 653 return revert ? -1 : 1; |
654 if (bValue > aValue) | 654 if (bValue > aValue) |
655 return revert ? 1 : -1; | 655 return revert ? 1 : -1; |
656 return a._request.indentityCompare(b._request); | 656 return a._request.indentityCompare(b._request); |
657 } | 657 } |
OLD | NEW |