| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 __proto__: WebInspector.VBox.prototype | 82 __proto__: WebInspector.VBox.prototype |
| 83 } | 83 } |
| 84 | 84 |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * @param {!WebInspector.NetworkRequest} request | 87 * @param {!WebInspector.NetworkRequest} request |
| 88 * @return {!Element} | 88 * @return {!Element} |
| 89 */ | 89 */ |
| 90 WebInspector.RequestTimingView.createTimingTable = function(request) | 90 WebInspector.RequestTimingView.createTimingTable = function(request) |
| 91 { | 91 { |
| 92 var tableElement = document.createElementWithClass("table", "network-timing-
table"); | 92 var tableElement = createElementWithClass("table", "network-timing-table"); |
| 93 tableElement.createChild("colgroup").createChild("col", "labels"); | 93 tableElement.createChild("colgroup").createChild("col", "labels"); |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * @param {string} title | 96 * @param {string} title |
| 97 * @param {string} className | 97 * @param {string} className |
| 98 * @param {number} start | 98 * @param {number} start |
| 99 * @param {number} end | 99 * @param {number} end |
| 100 */ | 100 */ |
| 101 function addRow(title, className, start, end) | 101 function addRow(title, className, start, end) |
| 102 { | 102 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 addRow(WebInspector.UIString("Content Download"), "receiving", (request.
responseReceivedTime - timing.requestTime) * 1000, total); | 166 addRow(WebInspector.UIString("Content Download"), "receiving", (request.
responseReceivedTime - timing.requestTime) * 1000, total); |
| 167 | 167 |
| 168 if (!request.finished) { | 168 if (!request.finished) { |
| 169 var cell = tableElement.createChild("tr").createChild("td", "caution"); | 169 var cell = tableElement.createChild("tr").createChild("td", "caution"); |
| 170 cell.colSpan = 2; | 170 cell.colSpan = 2; |
| 171 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); | 171 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); |
| 172 } | 172 } |
| 173 | 173 |
| 174 return tableElement; | 174 return tableElement; |
| 175 } | 175 } |
| OLD | NEW |