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

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

Issue 337283004: Inline usages of TimelineUIUtils.categoryForRecord (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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/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();
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineEventOverview.js ('k') | Source/devtools/front_end/timeline/TimelineModelImpl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698