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

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

Issue 1208483003: DevTools: Make frames on timeline flamechart of lightgray color. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..63ae2aa8e3f097e7e0cc669f39ccd64075721fec 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -580,7 +580,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
barY += vPadding;
barHeight -= 2 * vPadding + 1;
- context.fillStyle = frame.hasWarnings() ? "hsl(0, 80%, 70%)" : "white";
+ context.fillStyle = frame.idle ? "white" : frame.hasWarnings() ? "hsl(0, 80%, 70%)" : "#eee";
context.fillRect(barX, barY, barWidth, barHeight);
var frameDurationText = Number.preciseMillisToString(frame.duration, 1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698