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

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

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 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/overlay.html ('k') | tracing/tracing/ui/base/table.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/pie_chart.html
diff --git a/tracing/tracing/ui/base/pie_chart.html b/tracing/tracing/ui/base/pie_chart.html
index 17980a512cf8b66c01d153bdab3592b18af7bfd7..36418c41473ee742dcd8c3ed97fe22638245fd8a 100644
--- a/tracing/tracing/ui/base/pie_chart.html
+++ b/tracing/tracing/ui/base/pie_chart.html
@@ -91,7 +91,7 @@ tr.exportTo('tr.ui.b', function() {
labelSel.each(function(l) {
var r = this.getBoundingClientRect();
maxLabelWidth = Math.max(maxLabelWidth, r.width + 32);
- if (this.style.textAnchor == 'end') {
+ if (this.style.textAnchor === 'end') {
leftTextHeightSum += r.height;
} else {
rightTextHeightSum += r.height;
@@ -260,7 +260,7 @@ tr.exportTo('tr.ui.b', function() {
pathsGroupSel.selectAll('.arc').each(function(d, i) {
var origData = that.data_[i];
var dataSeries = that.getDataSeries(origData.label);
- if (origData.label == that.currentHighlightedLegendKey)
+ if (origData.label === that.currentHighlightedLegendKey)
this.style.fill = dataSeries.highlightedColor;
else
this.style.fill = dataSeries.color;
« no previous file with comments | « tracing/tracing/ui/base/overlay.html ('k') | tracing/tracing/ui/base/table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698