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

Side by Side Diff: tracing/tracing/ui/tracks/container_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, 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/task.html"> 8 <link rel="import" href="/tracing/base/task.html">
9 <link rel="import" href="/tracing/ui/tracks/track.html"> 9 <link rel="import" href="/tracing/ui/tracks/track.html">
10 <link rel="import" href="/tracing/core/filter.html"> 10 <link rel="import" href="/tracing/core/filter.html">
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 }, 113 },
114 114
115 addContainersToTrackMap: function(containerToTrackMap) { 115 addContainersToTrackMap: function(containerToTrackMap) {
116 this.tracks_.forEach(function(track) { 116 this.tracks_.forEach(function(track) {
117 track.addContainersToTrackMap(containerToTrackMap); 117 track.addContainersToTrackMap(containerToTrackMap);
118 }); 118 });
119 }, 119 },
120 120
121 clearTracks_: function() { 121 clearTracks_: function() {
122 this.tracks_.forEach(function(track) { 122 this.tracks_.forEach(function(track) {
123 this.removeChild(track); 123 Polymer.dom(this).removeChild(track);
124 }, this); 124 }, this);
125 } 125 }
126 }; 126 };
127 127
128 return { 128 return {
129 ContainerTrack: ContainerTrack 129 ContainerTrack: ContainerTrack
130 }; 130 };
131 }); 131 });
132 </script> 132 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/tracks/chart_track.html ('k') | tracing/tracing/ui/tracks/counter_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698