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

Unified Diff: Source/devtools/front_end/timeline/TimelineEventOverview.js

Issue 713913002: DevTools: merge TracingTimelineUIUtils into TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deleted instance refs Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelineEventOverview.js
diff --git a/Source/devtools/front_end/timeline/TimelineEventOverview.js b/Source/devtools/front_end/timeline/TimelineEventOverview.js
index d795b5ad838e91f5adffbf00a8d0e5bcba78cd0a..4a1b9e2fd0d8b9564ddcd233ad39a64a7ff42ef7 100644
--- a/Source/devtools/front_end/timeline/TimelineEventOverview.js
+++ b/Source/devtools/front_end/timeline/TimelineEventOverview.js
@@ -32,12 +32,10 @@
* @constructor
* @extends {WebInspector.TimelineOverviewBase}
* @param {!WebInspector.TimelineModel} model
- * @param {!WebInspector.TimelineUIUtils} uiUtils
*/
-WebInspector.TimelineEventOverview = function(model, uiUtils)
+WebInspector.TimelineEventOverview = function(model)
{
WebInspector.TimelineOverviewBase.call(this, model);
- this._uiUtils = uiUtils;
this.element.id = "timeline-overview-events";
this._fillStyles = {};
@@ -88,11 +86,11 @@ WebInspector.TimelineEventOverview.prototype = {
*/
function appendRecord(record)
{
- if (this._uiUtils.isBeginFrame(record))
+ if (record.type() === WebInspector.TracingTimelineModel.RecordType.BeginFrame)
return;
var recordStart = Math.floor((record.startTime() - timeOffset) * scale);
var recordEnd = Math.ceil((record.endTime() - timeOffset) * scale);
- var category = this._uiUtils.categoryForRecord(record);
+ var category = WebInspector.TimelineUIUtils.categoryForRecord(record);
if (category.overviewStripGroupIndex < 0)
return;
var bar = lastBarByGroup[category.overviewStripGroupIndex];
« no previous file with comments | « Source/devtools/front_end/timeline/MemoryCountersGraph.js ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698