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

Unified Diff: tracing/tracing/ui/tracks/process_track_base.html

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes Created 4 years, 8 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
« no previous file with comments | « tracing/tracing/ui/tracks/power_series_track.html ('k') | tracing/tracing/ui/tracks/rect_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/process_track_base.html
diff --git a/tracing/tracing/ui/tracks/process_track_base.html b/tracing/tracing/ui/tracks/process_track_base.html
index e386ef0c72c52f046e2f5336593a90d293aa4a4e..8cf75b794f028dd2860fd077771ed915cbdb74d0 100644
--- a/tracing/tracing/ui/tracks/process_track_base.html
+++ b/tracing/tracing/ui/tracks/process_track_base.html
@@ -44,11 +44,11 @@ tr.exportTo('tr.ui.tracks', function() {
this.processBase_ = undefined;
- this.classList.add('process-track-base');
- this.classList.add('expanded');
+ Polymer.dom(this).classList.add('process-track-base');
+ Polymer.dom(this).classList.add('expanded');
this.processNameEl_ = tr.ui.b.createSpan();
- this.processNameEl_.classList.add('process-track-name');
+ Polymer.dom(this.processNameEl_).classList.add('process-track-name');
this.headerEl_ = tr.ui.b.createDiv({className: 'process-track-header'});
Polymer.dom(this.headerEl_).appendChild(this.processNameEl_);
@@ -75,7 +75,7 @@ tr.exportTo('tr.ui.tracks', function() {
},
get expanded() {
- return this.classList.contains('expanded');
+ return Polymer.dom(this).classList.contains('expanded');
},
set expanded(expanded) {
@@ -84,7 +84,7 @@ tr.exportTo('tr.ui.tracks', function() {
if (this.expanded === expanded)
return;
- this.classList.toggle('expanded');
+ Polymer.dom(this).classList.toggle('expanded');
// Expanding and collapsing tracks is, essentially, growing and shrinking
// the viewport. We dispatch a change event to trigger any processing
« no previous file with comments | « tracing/tracing/ui/tracks/power_series_track.html ('k') | tracing/tracing/ui/tracks/rect_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698