Index: Source/devtools/front_end/timeline/TimelineFlameChart.js |
diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js |
index 84f52574e371ac0510917f7b16117ecb886673e7..8e3d17239810ef94ed4517de6806c4b0d0a9d691 100644 |
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js |
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js |
@@ -282,8 +282,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = { |
if (record.type() === WebInspector.TimelineModel.RecordType.JSFrame) |
return WebInspector.TimelineFlameChartDataProvider.jsFrameColorGenerator().colorForID(record.data()["functionName"]); |
- var category = WebInspector.TimelineUIUtils.categoryForRecord(record); |
- return category.fillColorStop1; |
+ return record.category().fillColorStop1; |
}, |
@@ -306,7 +305,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = { |
var record = this._records[entryIndex]; |
var timelineData = this._timelineData; |
- var category = WebInspector.TimelineUIUtils.categoryForRecord(record); |
+ var category = record.category(); |
// Paint text using white color on dark background. |
if (text) { |
context.save(); |