Index: tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html |
diff --git a/tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html b/tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html |
index 836d11aabed9540b130bec7dc5cae42831a7641e..bbab56b75d4bae7530ff23bc29626aac704f57c1 100644 |
--- a/tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html |
+++ b/tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html |
@@ -67,15 +67,16 @@ tr.exportTo('tr.ui.e.chrome.cc', function() { |
var lthi = this.objectSnapshot; |
var layerTreeImpl; |
- if (lthi) |
+ if (lthi) { |
layerTreeImpl = lthi.getTree(this.layerPicker_.whichTree); |
+ } |
this.layerPicker_.lthiSnapshot = lthi; |
this.layerView_.layerTreeImpl = layerTreeImpl; |
this.layerView_.regenerateContent(); |
- if (!this.selection_) |
- return; |
+ if (!this.selection_) return; |
+ |
this.selection = this.selection_.findEquivalent(lthi); |
}, |
@@ -84,8 +85,8 @@ tr.exportTo('tr.ui.e.chrome.cc', function() { |
}, |
set selection(selection) { |
- if (this.selection_ === selection) |
- return; |
+ if (this.selection_ === selection) return; |
+ |
this.selection_ = selection; |
this.layerPicker_.selection = selection; |
this.layerView_.selection = selection; |