Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js

Issue 2470523003: [Devtools] Fixed dividers in new network canvas timeline (Closed)
Patch Set: Merge branch 'master' into NETWORK_TIMELINE_FIX_DIVIDERS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698