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

Side by Side Diff: tracing/tracing/ui/base/color_legend.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: 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) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 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/color_scheme.html"> 8 <link rel="import" href="/tracing/base/color_scheme.html">
9 <link rel="import" href="/tracing/model/compound_event_selection_state.html"> 9 <link rel="import" href="/tracing/model/compound_event_selection_state.html">
10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> 10 <link rel="import" href="/tracing/ui/base/dom_helpers.html">
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 var colorId = tr.b.ColorScheme.getColorIdForGeneralPurposeString( 65 var colorId = tr.b.ColorScheme.getColorIdForGeneralPurposeString(
66 label); 66 label);
67 this.setLabelAndColorId(label, colorId); 67 this.setLabelAndColorId(label, colorId);
68 }, 68 },
69 69
70 setLabelAndColorId: function(label, colorId) { 70 setLabelAndColorId: function(label, colorId) {
71 this.label_ = label; 71 this.label_ = label;
72 72
73 this.$.label.textContent = ''; 73 this.$.label.textContent = '';
74 this.$.label.appendChild(tr.ui.b.asHTMLOrTextNode(label)); 74 Polymer.dom(this.$.label).appendChild(tr.ui.b.asHTMLOrTextNode(label));
75 75
76 if (colorId === undefined) 76 if (colorId === undefined)
77 this.$.square.style.color = 'initial'; 77 this.$.square.style.color = 'initial';
78 else 78 else
79 this.$.square.style.color = tr.b.ColorScheme.colorsAsStrings[colorId]; 79 this.$.square.style.color = tr.b.ColorScheme.colorsAsStrings[colorId];
80 } 80 }
81 }); 81 });
82 </script> 82 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/base/checkbox_picker_test.html ('k') | tracing/tracing/ui/base/container_that_decorates_its_children.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698