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

Unified Diff: tracing/tracing/ui/tracks/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/thread_track.html ('k') | tracing/tracing/ui/view_specific_brushing_state.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/track.html
diff --git a/tracing/tracing/ui/tracks/track.html b/tracing/tracing/ui/tracks/track.html
index 09a54c272239818c748d6df7b59fda4d84527767..4b151ebf8f571a10a97679ef2f5f59399ac938b3 100644
--- a/tracing/tracing/ui/tracks/track.html
+++ b/tracing/tracing/ui/tracks/track.html
@@ -28,7 +28,7 @@ tr.exportTo('tr.ui.tracks', function() {
throw new Error('viewport is required when creating a Track.');
this.viewport_ = viewport;
- this.classList.add('track');
+ Polymer.dom(this).classList.add('track');
},
get viewport() {
@@ -57,11 +57,11 @@ tr.exportTo('tr.ui.tracks', function() {
context: function() {
// This is a little weird here, but we have to be able to walk up the
// parent tree to get the context.
- if (!this.parentNode)
+ if (!Polymer.dom(this).parentNode)
return undefined;
- if (!this.parentNode.context)
+ if (!Polymer.dom(this).parentNode.context)
throw new Error('Parent container does not support context() method.');
- return this.parentNode.context();
+ return Polymer.dom(this).parentNode.context();
},
decorateChild_: function(childTrack) {
« no previous file with comments | « tracing/tracing/ui/tracks/thread_track.html ('k') | tracing/tracing/ui/view_specific_brushing_state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698