| 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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 if (!text || !text.length) | 1035 if (!text || !text.length) |
| 1036 continue; | 1036 continue; |
| 1037 context.fillStyle = this._dataProvider.textColor(entryIndex); | 1037 context.fillStyle = this._dataProvider.textColor(entryIndex); |
| 1038 context.fillText(text, barX + textPadding, barY + textBaseHeight); | 1038 context.fillText(text, barX + textPadding, barY + textBaseHeight); |
| 1039 } | 1039 } |
| 1040 | 1040 |
| 1041 this._drawFlowEvents(context, width, height); | 1041 this._drawFlowEvents(context, width, height); |
| 1042 | 1042 |
| 1043 context.restore(); | 1043 context.restore(); |
| 1044 | 1044 |
| 1045 WebInspector.TimelineGrid.drawCanvasGrid(this._canvas, this._calculator)
; | 1045 WebInspector.TimelineGrid.drawCanvasGrid(context, this._calculator, 3); |
| 1046 this._drawMarkers(); | 1046 this._drawMarkers(); |
| 1047 this._drawGroupHeaders(width, height); | 1047 this._drawGroupHeaders(width, height); |
| 1048 | 1048 |
| 1049 this._updateElementPosition(this._highlightElement, this._highlightedEnt
ryIndex); | 1049 this._updateElementPosition(this._highlightElement, this._highlightedEnt
ryIndex); |
| 1050 this._updateElementPosition(this._selectedElement, this._selectedEntryIn
dex); | 1050 this._updateElementPosition(this._selectedElement, this._selectedEntryIn
dex); |
| 1051 this._updateMarkerHighlight(); | 1051 this._updateMarkerHighlight(); |
| 1052 }, | 1052 }, |
| 1053 | 1053 |
| 1054 /** | 1054 /** |
| 1055 * @param {number} width | 1055 * @param {number} width |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1656 this.update(); | 1656 this.update(); |
| 1657 }, | 1657 }, |
| 1658 | 1658 |
| 1659 _enabled: function() | 1659 _enabled: function() |
| 1660 { | 1660 { |
| 1661 return this._rawTimelineDataLength !== 0; | 1661 return this._rawTimelineDataLength !== 0; |
| 1662 }, | 1662 }, |
| 1663 | 1663 |
| 1664 __proto__: WebInspector.ChartViewport.prototype | 1664 __proto__: WebInspector.ChartViewport.prototype |
| 1665 }; | 1665 }; |
| OLD | NEW |