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

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

Issue 1636853002: Timeline: simplify handling of event category colors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
index 1fb40c92e3da2d6e101b6f09140d7218cc809add..af2d368b54ba729085b2df1fac22a06e71fe1415 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -607,7 +607,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
var color = this._asyncColorByCategory[category.name];
if (color)
return color;
- var parsedColor = WebInspector.Color.parse(category.fillColorStop1);
+ var parsedColor = WebInspector.Color.parse(category.color);
color = parsedColor.setAlpha(0.7).asString(WebInspector.Color.Format.RGBA) || "";
this._asyncColorByCategory[category.name] = color;
return color;
@@ -861,8 +861,8 @@ WebInspector.TimelineFlameChartNetworkDataProvider = function(model)
{
WebInspector.TimelineFlameChartDataProviderBase.call(this, model);
var loadingCategory = WebInspector.TimelineUIUtils.categories()["loading"];
- this._waitingColor = loadingCategory.backgroundColor;
- this._processingColor = loadingCategory.fillColorStop1;
+ this._waitingColor = loadingCategory.childColor;
+ this._processingColor = loadingCategory.color;
}
WebInspector.TimelineFlameChartNetworkDataProvider.prototype = {

Powered by Google App Engine
This is Rietveld 408576698