| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 WebInspector.RequestTimingView.calculateRequestTimeRanges = function(request) | 118 WebInspector.RequestTimingView.calculateRequestTimeRanges = function(request) |
| 119 { | 119 { |
| 120 var result = []; | 120 var result = []; |
| 121 /** | 121 /** |
| 122 * @param {!WebInspector.RequestTimeRangeNames} name | 122 * @param {!WebInspector.RequestTimeRangeNames} name |
| 123 * @param {number} start | 123 * @param {number} start |
| 124 * @param {number} end | 124 * @param {number} end |
| 125 */ | 125 */ |
| 126 function addRange(name, start, end) | 126 function addRange(name, start, end) |
| 127 { | 127 { |
| 128 if (start < end) | 128 if (start <= end) |
| 129 result.push({name: name, start: start, end: end}); | 129 result.push({name: name, start: start, end: end}); |
| 130 } | 130 } |
| 131 | 131 |
| 132 /** | 132 /** |
| 133 * @param {!Array.<number>} numbers | 133 * @param {!Array.<number>} numbers |
| 134 * @return {number|undefined} | 134 * @return {number|undefined} |
| 135 */ | 135 */ |
| 136 function firstPositive(numbers) | 136 function firstPositive(numbers) |
| 137 { | 137 { |
| 138 for (var i = 0; i < numbers.length; ++i) { | 138 for (var i = 0; i < numbers.length; ++i) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 cell.colSpan = 2; | 239 cell.colSpan = 2; |
| 240 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); | 240 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); |
| 241 } | 241 } |
| 242 | 242 |
| 243 var note = tableElement.createChild("tr").createChild("td", "footnote"); | 243 var note = tableElement.createChild("tr").createChild("td", "footnote"); |
| 244 note.colSpan = 2; | 244 note.colSpan = 2; |
| 245 note.appendChild(WebInspector.createDocumentationAnchor("network#resource-ne
twork-timing", WebInspector.UIString("Explanation of resource timing"))); | 245 note.appendChild(WebInspector.createDocumentationAnchor("network#resource-ne
twork-timing", WebInspector.UIString("Explanation of resource timing"))); |
| 246 | 246 |
| 247 return tableElement; | 247 return tableElement; |
| 248 } | 248 } |
| OLD | NEW |