OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 this._font = (this.barHeight() - 4) + "px " + WebInspector.fontFamil
y(); | 264 this._font = (this.barHeight() - 4) + "px " + WebInspector.fontFamil
y(); |
265 this._boldFont = "bold " + this._font; | 265 this._boldFont = "bold " + this._font; |
266 } | 266 } |
267 var node = this._entryNodes[entryIndex]; | 267 var node = this._entryNodes[entryIndex]; |
268 var reason = node.deoptReason; | 268 var reason = node.deoptReason; |
269 return (reason && reason !== "no reason") ? this._boldFont : this._font; | 269 return (reason && reason !== "no reason") ? this._boldFont : this._font; |
270 }, | 270 }, |
271 | 271 |
272 /** | 272 /** |
273 * @param {number} entryIndex | 273 * @param {number} entryIndex |
274 * @return {!string} | 274 * @return {string} |
275 */ | 275 */ |
276 entryColor: function(entryIndex) | 276 entryColor: function(entryIndex) |
277 { | 277 { |
278 var node = this._entryNodes[entryIndex]; | 278 var node = this._entryNodes[entryIndex]; |
279 return this._colorGenerator.colorForID(node.functionName + ":" + node.ur
l); | 279 return this._colorGenerator.colorForID(node.functionName + ":" + node.ur
l); |
280 }, | 280 }, |
281 | 281 |
282 /** | 282 /** |
283 * @param {number} entryIndex | 283 * @param {number} entryIndex |
284 * @param {!CanvasRenderingContext2D} context | 284 * @param {!CanvasRenderingContext2D} context |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 /** | 320 /** |
321 * @return {number} | 321 * @return {number} |
322 */ | 322 */ |
323 paddingLeft: function() | 323 paddingLeft: function() |
324 { | 324 { |
325 return 15; | 325 return 15; |
326 }, | 326 }, |
327 | 327 |
328 /** | 328 /** |
329 * @param {number} entryIndex | 329 * @param {number} entryIndex |
330 * @return {!string} | 330 * @return {string} |
331 */ | 331 */ |
332 textColor: function(entryIndex) | 332 textColor: function(entryIndex) |
333 { | 333 { |
334 return "#333"; | 334 return "#333"; |
335 } | 335 } |
336 } | 336 } |
337 | 337 |
338 | 338 |
339 /** | 339 /** |
340 * @return {!WebInspector.FlameChart.ColorGenerator} | 340 * @return {!WebInspector.FlameChart.ColorGenerator} |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 { | 641 { |
642 var ratio = window.devicePixelRatio; | 642 var ratio = window.devicePixelRatio; |
643 this._overviewCanvas.width = width * ratio; | 643 this._overviewCanvas.width = width * ratio; |
644 this._overviewCanvas.height = height * ratio; | 644 this._overviewCanvas.height = height * ratio; |
645 this._overviewCanvas.style.width = width + "px"; | 645 this._overviewCanvas.style.width = width + "px"; |
646 this._overviewCanvas.style.height = height + "px"; | 646 this._overviewCanvas.style.height = height + "px"; |
647 }, | 647 }, |
648 | 648 |
649 __proto__: WebInspector.VBox.prototype | 649 __proto__: WebInspector.VBox.prototype |
650 } | 650 } |
OLD | NEW |