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

Unified Diff: Source/devtools/front_end/timeline/TimelineEventOverview.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/TimelineEventOverview.js
diff --git a/Source/devtools/front_end/timeline/TimelineEventOverview.js b/Source/devtools/front_end/timeline/TimelineEventOverview.js
index 76006b40fe656d1c3d5b24c8a1c575ec7db809ff..891a0460ae9e73e0b7b998738d246b788631f0a2 100644
--- a/Source/devtools/front_end/timeline/TimelineEventOverview.js
+++ b/Source/devtools/front_end/timeline/TimelineEventOverview.js
@@ -91,7 +91,7 @@ WebInspector.TimelineEventOverview.prototype = {
return;
var recordStart = Math.floor((record.startTime() - timeOffset) * scale);
var recordEnd = Math.ceil((record.endTime() - timeOffset) * scale);
- var category = WebInspector.TimelineUIUtils.categoryForRecord(record);
+ var category = record.category();
if (category.overviewStripGroupIndex < 0)
return;
var bar = lastBarByGroup[category.overviewStripGroupIndex];
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-script-tag-1.html ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698