| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 return Math.min(this._canvas.width, Math.max(0, value)); | 1045 return Math.min(this._canvas.width, Math.max(0, value)); |
| 1046 }, | 1046 }, |
| 1047 | 1047 |
| 1048 _levelToHeight: function(level) | 1048 _levelToHeight: function(level) |
| 1049 { | 1049 { |
| 1050 return this._baseHeight - level * this._barHeightDelta; | 1050 return this._baseHeight - level * this._barHeightDelta; |
| 1051 }, | 1051 }, |
| 1052 | 1052 |
| 1053 _buildEntryInfo: function(entryInfo) | 1053 _buildEntryInfo: function(entryInfo) |
| 1054 { | 1054 { |
| 1055 var infoTable = document.createElementWithClass("table", "info-table"); | 1055 var infoTable = createElementWithClass("table", "info-table"); |
| 1056 for (var i = 0; i < entryInfo.length; ++i) { | 1056 for (var i = 0; i < entryInfo.length; ++i) { |
| 1057 var row = infoTable.createChild("tr"); | 1057 var row = infoTable.createChild("tr"); |
| 1058 row.createChild("td", "title").textContent = entryInfo[i].title; | 1058 row.createChild("td", "title").textContent = entryInfo[i].title; |
| 1059 row.createChild("td").textContent = entryInfo[i].text; | 1059 row.createChild("td").textContent = entryInfo[i].text; |
| 1060 } | 1060 } |
| 1061 return infoTable; | 1061 return infoTable; |
| 1062 }, | 1062 }, |
| 1063 | 1063 |
| 1064 /** | 1064 /** |
| 1065 * @param {!CanvasRenderingContext2D} context | 1065 * @param {!CanvasRenderingContext2D} context |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 { | 1178 { |
| 1179 this._highlightedMarkerIndex = -1; | 1179 this._highlightedMarkerIndex = -1; |
| 1180 this._highlightedEntryIndex = -1; | 1180 this._highlightedEntryIndex = -1; |
| 1181 this._selectedEntryIndex = -1; | 1181 this._selectedEntryIndex = -1; |
| 1182 this._textWidth = {}; | 1182 this._textWidth = {}; |
| 1183 this.update(); | 1183 this.update(); |
| 1184 }, | 1184 }, |
| 1185 | 1185 |
| 1186 __proto__: WebInspector.HBox.prototype | 1186 __proto__: WebInspector.HBox.prototype |
| 1187 } | 1187 } |
| OLD | NEW |