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

Unified Diff: tracing/tracing/ui/tracks/ruler_track.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/rect_track.html ('k') | tracing/tracing/ui/tracks/slice_group_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/ruler_track.html
diff --git a/tracing/tracing/ui/tracks/ruler_track.html b/tracing/tracing/ui/tracks/ruler_track.html
index 11f02a33779d8d4db5df8474911c9d9fe81cb34f..63d409c45da92c9977dca4c5c8f52b7856a36e1a 100644
--- a/tracing/tracing/ui/tracks/ruler_track.html
+++ b/tracing/tracing/ui/tracks/ruler_track.html
@@ -33,7 +33,7 @@ tr.exportTo('tr.ui.tracks', function() {
decorate: function(viewport) {
tr.ui.tracks.Track.prototype.decorate.call(this, viewport);
- this.classList.add('ruler-track');
+ Polymer.dom(this).classList.add('ruler-track');
this.strings_secs_ = [];
this.strings_msecs_ = [];
this.strings_usecs_ = [];
@@ -55,9 +55,9 @@ tr.exportTo('tr.ui.tracks', function() {
viewportChange_: function() {
if (this.viewport.interestRange.isEmpty)
- this.classList.remove('tall-mode');
+ Polymer.dom(this).classList.remove('tall-mode');
else
- this.classList.add('tall-mode');
+ Polymer.dom(this).classList.add('tall-mode');
},
draw: function(type, viewLWorld, viewRWorld) {
« no previous file with comments | « tracing/tracing/ui/tracks/rect_track.html ('k') | tracing/tracing/ui/tracks/slice_group_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698