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

Unified Diff: tracing/tracing/ui/base/mouse_mode_selector.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/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..72bd463aeb9677b076ff6ad9e9c811a30e869855 100644
--- a/tracing/tracing/ui/base/mouse_mode_selector.html
+++ b/tracing/tracing/ui/base/mouse_mode_selector.html
@@ -122,8 +122,10 @@ 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 +222,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