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

Unified Diff: tracing/tracing/ui/base/mouse_mode_selector.html

Issue 1967613003: Migrate child element manipulation, innerHTML, classList, attributes, (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: white space fix. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/ui/base/mouse_mode_icon_test.html ('k') | tracing/tracing/ui/base/name_bar_chart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/mouse_mode_selector.html
diff --git a/tracing/tracing/ui/base/mouse_mode_selector.html b/tracing/tracing/ui/base/mouse_mode_selector.html
index bc0964286a2fe656f4cda0631f353738406b3708..6676ada55ef19c7aee9c656b4295db03dfd9d38c 100644
--- a/tracing/tracing/ui/base/mouse_mode_selector.html
+++ b/tracing/tracing/ui/base/mouse_mode_selector.html
@@ -122,8 +122,9 @@ tr.exportTo('tr.ui.b', function() {
},
ready: function() {
- this.buttonsEl_ = this.shadowRoot.querySelector('.buttons');
- this.dragHandleEl_ = this.shadowRoot.querySelector('.drag-handle');
+ this.buttonsEl_ = Polymer.dom(this.root).querySelector('.buttons');
+ this.dragHandleEl_ = Polymer.dom(this.root).querySelector(
+ '.drag-handle');
this.supportedModeMask = MOUSE_SELECTOR_MODE.ALL_MODES;
this.dragHandleEl_.addEventListener('mousedown',
@@ -220,7 +221,7 @@ tr.exportTo('tr.ui.b', function() {
var button = document.createElement('tr-ui-b-mouse-mode-icon');
button.mode = mode;
- button.classList.add('tool-button');
+ Polymer.dom(button).classList.add('tool-button');
Polymer.dom(this.buttonsEl_).appendChild(button);
}
« no previous file with comments | « tracing/tracing/ui/base/mouse_mode_icon_test.html ('k') | tracing/tracing/ui/base/name_bar_chart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698