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

Unified Diff: tracing/tracing/ui/brushing_state.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Sync to head Created 4 years, 5 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/brushing_state.html
diff --git a/tracing/tracing/ui/brushing_state.html b/tracing/tracing/ui/brushing_state.html
index da564865a0553dc3ab084ef257f3f855a1482fd9..9996e4db952e66385e57258cd5a54aa396fd5b07 100644
--- a/tracing/tracing/ui/brushing_state.html
+++ b/tracing/tracing/ui/brushing_state.html
@@ -166,7 +166,7 @@ tr.exportTo('tr.ui.b', function() {
}
var brightenedEvents = this.brightenedEvents_;
- model.iterateAllEvents(function(e) {
+ for (var e of model.getDescendantEvents()) {
var score;
if (brightenedEvents.contains(e)) {
score = 0;
@@ -183,7 +183,7 @@ tr.exportTo('tr.ui.b', function() {
score++;
e.selectionState = SelectionState.getFromDimmingLevel(score);
}
- }.bind(this));
+ }
},
transferModelOwnershipToClone: function(that) {
@@ -201,15 +201,13 @@ tr.exportTo('tr.ui.b', function() {
this.appliedToModel_ = undefined;
if (!this.causesDimming_) {
- this.brightenedEvents_.forEach(function(e) {
+ for (var e of this.brightenedEvents_)
e.selectionState = SelectionState.NONE;
- });
return;
}
- model.iterateAllEvents(function(e) {
+ for (var e of model.getDescendantEvents())
e.selectionState = SelectionState.NONE;
- });
}
};

Powered by Google App Engine
This is Rietveld 408576698