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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_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_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;

Powered by Google App Engine
This is Rietveld 408576698