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

Unified Diff: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.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
Index: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
diff --git a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
index 397f7618c1b6a825b45b87321b23a622140eeacf..7375c09e0504769fda30bd8cca1982cf1a5e8684 100644
--- a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
+++ b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
@@ -143,7 +143,7 @@ Polymer({
}.bind(this));
this.latencyChart_.addEventListener('item-mousemove', function(e) {
- if (e.button == undefined)
+ if (e.button === undefined)
return;
this.curMouseIndex_ = e.index;
this.updateBrushedRange_();
@@ -203,7 +203,7 @@ Polymer({
createLatencyLineChart: function(data, title) {
var chart = new tr.ui.b.LineChart();
var width = 600;
- if (document.body.clientWidth != undefined)
+ if (document.body.clientWidth !== undefined)
width = document.body.clientWidth * 0.5;
chart.setSize({width: width, height: chart.height});
chart.chartTitle = title;
@@ -277,7 +277,7 @@ Polymer({
Polymer.dom(resultArea).appendChild(this.latencyChart_);
}
- if (frametimeData.length != 0) {
+ if (frametimeData.length !== 0) {
this.frametimeChart_ = this.createLatencyLineChart(
frametimeData, 'Frame Times');
Polymer.dom(resultArea).appendChild(this.frametimeChart_);
@@ -294,7 +294,7 @@ Polymer({
},
supportsModel: function(m) {
- if (m == undefined) {
+ if (m === undefined) {
return {
supported: false,
reason: 'Unknown tracing model'

Powered by Google App Engine
This is Rietveld 408576698