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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/layer_view.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
Index: tracing/tracing/ui/extras/chrome/cc/layer_view.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/layer_view.html b/tracing/tracing/ui/extras/chrome/cc/layer_view.html
index b98bb5eecf911fc0e9e21872ce33fd4d1b7edae6..db978d6d3362f7a37f16822ad5bae976e58b010b 100644
--- a/tracing/tracing/ui/extras/chrome/cc/layer_view.html
+++ b/tracing/tracing/ui/extras/chrome/cc/layer_view.html
@@ -98,8 +98,9 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
this.dragBar_.style.display = 'none';
this.analysisEl_.style.display = 'none';
var analysis = Polymer.dom(this.analysisEl_).firstChild;
- if (analysis)
+ if (analysis) {
Polymer.dom(this.analysisEl_).removeChild(analysis);
+ }
this.layerTreeQuadStackView_.style.height =
window.getComputedStyle(this).height;
}
@@ -107,8 +108,9 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
},
createPictureBtn_: function(pictures) {
- if (!(pictures instanceof Array))
+ if (!(pictures instanceof Array)) {
pictures = [pictures];
+ }
var link = document.createElement('tr-ui-a-analysis-link');
link.selection = function() {
@@ -125,8 +127,9 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
},
onRequestSelectionChangeFromAnalysisEl_: function(e) {
- if (!(e.selection instanceof tr.ui.e.chrome.cc.Selection))
+ if (!(e.selection instanceof tr.ui.e.chrome.cc.Selection)) {
return;
+ }
e.stopPropagation();
this.selection = e.selection;

Powered by Google App Engine
This is Rietveld 408576698