| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 this._tableElement.remove(); | 76 this._tableElement.remove(); |
| 77 | 77 |
| 78 this._tableElement = WebInspector.RequestTimingView.createTimingTable(th
is._request); | 78 this._tableElement = WebInspector.RequestTimingView.createTimingTable(th
is._request); |
| 79 this.element.appendChild(this._tableElement); | 79 this.element.appendChild(this._tableElement); |
| 80 }, | 80 }, |
| 81 | 81 |
| 82 __proto__: WebInspector.VBox.prototype | 82 __proto__: WebInspector.VBox.prototype |
| 83 } | 83 } |
| 84 | 84 |
| 85 | 85 |
| 86 /** |
| 87 * @param {!WebInspector.NetworkRequest} request |
| 88 * @return {!Element} |
| 89 */ |
| 86 WebInspector.RequestTimingView.createTimingTable = function(request) | 90 WebInspector.RequestTimingView.createTimingTable = function(request) |
| 87 { | 91 { |
| 88 var tableElement = document.createElement("table"); | 92 var tableElement = document.createElement("table"); |
| 89 tableElement.className = "network-timing-table"; | 93 tableElement.className = "network-timing-table"; |
| 90 var rows = []; | 94 var rows = []; |
| 91 | 95 |
| 92 function addRow(title, className, start, end) | 96 function addRow(title, className, start, end) |
| 93 { | 97 { |
| 94 var row = {}; | 98 var row = {}; |
| 95 row.title = title; | 99 row.title = title; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 177 } |
| 174 | 178 |
| 175 if (!request.finished) { | 179 if (!request.finished) { |
| 176 var cell = tableElement.createChild("tr").createChild("td", "caution"); | 180 var cell = tableElement.createChild("tr").createChild("td", "caution"); |
| 177 cell.colSpan = 2; | 181 cell.colSpan = 2; |
| 178 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); | 182 cell.createTextChild(WebInspector.UIString("CAUTION: request is not fini
shed yet!")); |
| 179 } | 183 } |
| 180 | 184 |
| 181 return tableElement; | 185 return tableElement; |
| 182 } | 186 } |
| OLD | NEW |