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

Unified Diff: tracing/tracing/ui/base/chart_base.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/ui/base/camera.html ('k') | tracing/tracing/ui/base/chart_base_2d.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/chart_base.html
diff --git a/tracing/tracing/ui/base/chart_base.html b/tracing/tracing/ui/base/chart_base.html
index d9470c140246330da6911da708808fe0bdcdc488..6e166d2d3142f0b63864c969f49aeb7ae5d881d1 100644
--- a/tracing/tracing/ui/base/chart_base.html
+++ b/tracing/tracing/ui/base/chart_base.html
@@ -47,8 +47,9 @@ tr.exportTo('tr.ui.b', function() {
function getColorOfKey(key, selected) {
var id = ColorScheme.getColorIdForGeneralPurposeString(key);
- if (selected)
+ if (selected) {
id += ColorScheme.properties.brightenedOffsets[0];
+ }
return ColorScheme.colorsAsStrings[id];
}
@@ -132,8 +133,9 @@ tr.exportTo('tr.ui.b', function() {
set enabled(enabled) {
// If the caller is disabling a data series, but it wasn't optional, then
// force it to be optional.
- if (!this.optional && !enabled)
+ if (!this.optional && !enabled) {
this.optional = true;
+ }
this.enabled_ = enabled;
},
« no previous file with comments | « tracing/tracing/ui/base/camera.html ('k') | tracing/tracing/ui/base/chart_base_2d.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698