| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 case WebInspector.TimelineAgent.RecordType.TimerFire: | 1023 case WebInspector.TimelineAgent.RecordType.TimerFire: |
| 1024 return record.data.scriptName ? WebInspector.linkifyResourceAsNo
de(record.data.scriptName, "scripts", record.data.scriptLine, "", "") : record.d
ata.timerId; | 1024 return record.data.scriptName ? WebInspector.linkifyResourceAsNo
de(record.data.scriptName, "scripts", record.data.scriptLine, "", "") : record.d
ata.timerId; |
| 1025 case WebInspector.TimelineAgent.RecordType.FunctionCall: | 1025 case WebInspector.TimelineAgent.RecordType.FunctionCall: |
| 1026 return record.data.scriptName ? WebInspector.linkifyResourceAsNo
de(record.data.scriptName, "scripts", record.data.scriptLine, "", "") : null; | 1026 return record.data.scriptName ? WebInspector.linkifyResourceAsNo
de(record.data.scriptName, "scripts", record.data.scriptLine, "", "") : null; |
| 1027 case WebInspector.TimelineAgent.RecordType.EventDispatch: | 1027 case WebInspector.TimelineAgent.RecordType.EventDispatch: |
| 1028 return record.data ? record.data.type : null; | 1028 return record.data ? record.data.type : null; |
| 1029 case WebInspector.TimelineAgent.RecordType.Paint: | 1029 case WebInspector.TimelineAgent.RecordType.Paint: |
| 1030 return record.data.width + "\u2009\u00d7\u2009" + record.data.he
ight; | 1030 return record.data.width + "\u2009\u00d7\u2009" + record.data.he
ight; |
| 1031 case WebInspector.TimelineAgent.RecordType.TimerInstall: | 1031 case WebInspector.TimelineAgent.RecordType.TimerInstall: |
| 1032 case WebInspector.TimelineAgent.RecordType.TimerRemove: | 1032 case WebInspector.TimelineAgent.RecordType.TimerRemove: |
| 1033 return this.stackTrace ? WebInspector.linkifyResourceAsNode(this
.stackTrace[0].scriptName, "scripts", this.stackTrace[0].lineNumber, "", "") : r
ecord.data.timerId; | 1033 return this.stackTrace ? WebInspector.linkifyResourceAsNode(this
.stackTrace[0].url, "scripts", this.stackTrace[0].lineNumber, "", "") : record.d
ata.timerId; |
| 1034 case WebInspector.TimelineAgent.RecordType.ParseHTML: | 1034 case WebInspector.TimelineAgent.RecordType.ParseHTML: |
| 1035 case WebInspector.TimelineAgent.RecordType.RecalculateStyles: | 1035 case WebInspector.TimelineAgent.RecordType.RecalculateStyles: |
| 1036 return this.stackTrace ? WebInspector.linkifyResourceAsNode(this
.stackTrace[0].scriptName, "scripts", this.stackTrace[0].lineNumber, "", "") : n
ull; | 1036 return this.stackTrace ? WebInspector.linkifyResourceAsNode(this
.stackTrace[0].url, "scripts", this.stackTrace[0].lineNumber, "", "") : null; |
| 1037 case WebInspector.TimelineAgent.RecordType.EvaluateScript: | 1037 case WebInspector.TimelineAgent.RecordType.EvaluateScript: |
| 1038 return record.data.url ? WebInspector.linkifyResourceAsNode(reco
rd.data.url, "scripts", record.data.lineNumber, "", "") : null; | 1038 return record.data.url ? WebInspector.linkifyResourceAsNode(reco
rd.data.url, "scripts", record.data.lineNumber, "", "") : null; |
| 1039 case WebInspector.TimelineAgent.RecordType.XHRReadyStateChange: | 1039 case WebInspector.TimelineAgent.RecordType.XHRReadyStateChange: |
| 1040 case WebInspector.TimelineAgent.RecordType.XHRLoad: | 1040 case WebInspector.TimelineAgent.RecordType.XHRLoad: |
| 1041 case WebInspector.TimelineAgent.RecordType.ScheduleResourceRequest: | 1041 case WebInspector.TimelineAgent.RecordType.ScheduleResourceRequest: |
| 1042 case WebInspector.TimelineAgent.RecordType.ResourceSendRequest: | 1042 case WebInspector.TimelineAgent.RecordType.ResourceSendRequest: |
| 1043 case WebInspector.TimelineAgent.RecordType.ResourceReceivedData: | 1043 case WebInspector.TimelineAgent.RecordType.ResourceReceivedData: |
| 1044 case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse: | 1044 case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse: |
| 1045 case WebInspector.TimelineAgent.RecordType.ResourceFinish: | 1045 case WebInspector.TimelineAgent.RecordType.ResourceFinish: |
| 1046 return WebInspector.displayNameForURL(record.data.url); | 1046 return WebInspector.displayNameForURL(record.data.url); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 { | 1126 { |
| 1127 this._appendTextRow("", ""); | 1127 this._appendTextRow("", ""); |
| 1128 var framesTable = document.createElement("table"); | 1128 var framesTable = document.createElement("table"); |
| 1129 for (var i = 0; i < stackTrace.length; ++i) { | 1129 for (var i = 0; i < stackTrace.length; ++i) { |
| 1130 var stackFrame = stackTrace[i]; | 1130 var stackFrame = stackTrace[i]; |
| 1131 var row = document.createElement("tr"); | 1131 var row = document.createElement("tr"); |
| 1132 row.className = "timeline-details"; | 1132 row.className = "timeline-details"; |
| 1133 row.appendChild(this._createCell(stackFrame.functionName ? stackFram
e.functionName : WebInspector.UIString("(anonymous function)"), "timeline-functi
on-name")); | 1133 row.appendChild(this._createCell(stackFrame.functionName ? stackFram
e.functionName : WebInspector.UIString("(anonymous function)"), "timeline-functi
on-name")); |
| 1134 row.appendChild(this._createCell(" @ ")); | 1134 row.appendChild(this._createCell(" @ ")); |
| 1135 var linkCell = document.createElement("td"); | 1135 var linkCell = document.createElement("td"); |
| 1136 linkCell.appendChild(WebInspector.linkifyResourceAsNode(stackFrame.s
criptName, "scripts", stackFrame.lineNumber, "timeline-details")); | 1136 linkCell.appendChild(WebInspector.linkifyResourceAsNode(stackFrame.u
rl, "scripts", stackFrame.lineNumber, "timeline-details")); |
| 1137 row.appendChild(linkCell); | 1137 row.appendChild(linkCell); |
| 1138 framesTable.appendChild(row); | 1138 framesTable.appendChild(row); |
| 1139 } | 1139 } |
| 1140 this._appendElementRow(title, framesTable, "timeline-stacktrace-title"); | 1140 this._appendElementRow(title, framesTable, "timeline-stacktrace-title"); |
| 1141 } | 1141 } |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 WebInspector.TimelineExpandableElement = function(container) | 1144 WebInspector.TimelineExpandableElement = function(container) |
| 1145 { | 1145 { |
| 1146 this._element = document.createElement("div"); | 1146 this._element = document.createElement("div"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1173 this._element.removeStyleClass("hidden"); | 1173 this._element.removeStyleClass("hidden"); |
| 1174 } else | 1174 } else |
| 1175 this._element.addStyleClass("hidden"); | 1175 this._element.addStyleClass("hidden"); |
| 1176 }, | 1176 }, |
| 1177 | 1177 |
| 1178 _dispose: function() | 1178 _dispose: function() |
| 1179 { | 1179 { |
| 1180 this._element.parentElement.removeChild(this._element); | 1180 this._element.parentElement.removeChild(this._element); |
| 1181 } | 1181 } |
| 1182 } | 1182 } |
| OLD | NEW |