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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/layer_picker.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/chrome/cc/layer_picker.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/layer_picker.html b/tracing/tracing/ui/extras/chrome/cc/layer_picker.html
index 48bca1175108e1674d941d438a8b1b798c83eb2d..c02e129d3b5ddcf76ab1d4f1c696dc34b811dc53 100644
--- a/tracing/tracing/ui/extras/chrome/cc/layer_picker.html
+++ b/tracing/tracing/ui/extras/chrome/cc/layer_picker.html
@@ -82,7 +82,7 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
set whichTree(whichTree) {
this.whichTree_ = whichTree;
- this.renderPassQuads_ = (whichTree == RENDER_PASS_QUADS);
+ this.renderPassQuads_ = (whichTree === RENDER_PASS_QUADS);
this.updateContents_();
tr.b.dispatchSimpleEvent(this, 'selection-change', false);
},
@@ -142,8 +142,8 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
function isPureTransformLayer(layer) {
if (layer.args.compositingReasons &&
- layer.args.compositingReasons.length != 1 &&
- layer.args.compositingReasons[0] != 'No reasons given')
+ layer.args.compositingReasons.length !== 1 &&
+ layer.args.compositingReasons[0] !== 'No reasons given')
return false;
if (layer.args.drawsContent)
@@ -205,7 +205,7 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
item.renderPassId = id;
Polymer.dom(this.itemList_).appendChild(item);
- if (id == selectedRenderPassId) {
+ if (id === selectedRenderPassId) {
renderPass.selectionState =
tr.model.SelectionState.SELECTED;
}
@@ -247,7 +247,7 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
item.layer = layer;
Polymer.dom(this.itemList_).appendChild(item);
- if (layer.layerId == selectedLayerId) {
+ if (layer.layerId === selectedLayerId) {
layer.selectionState = tr.model.SelectionState.SELECTED;
item.selected = true;
}
@@ -312,7 +312,7 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
},
set selection(selection) {
- if (this.selection_ == selection)
+ if (this.selection_ === selection)
return;
this.selection_ = selection;
this.updateContents_();

Powered by Google App Engine
This is Rietveld 408576698