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

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

Issue 1211613002: Timeline: check category presence in list, not string equality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 02d5ed5c0e202cadec7abbaa601af3c543d120fb..d1a6953c556f1755e4de564d048050151b9de5c3 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -545,7 +545,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
}
var category = WebInspector.TimelineUIUtils.eventStyle(event).category;
if (WebInspector.TracingModel.isAsyncPhase(event.phase)) {
- if (event.category === WebInspector.TracingModel.ConsoleEventCategory)
+ if (event.hasCategory(WebInspector.TracingModel.ConsoleEventCategory))
return this._consoleColorGenerator.colorForID(event.name);
var color = this._asyncColorByCategory[category.name];
if (color)

Powered by Google App Engine
This is Rietveld 408576698