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; |