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

Unified Diff: tracing/tracing/ui/base/tab_view.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/scatter_chart.html ('k') | tracing/tracing/ui/base/tab_view_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/tab_view.html
diff --git a/tracing/tracing/ui/base/tab_view.html b/tracing/tracing/ui/base/tab_view.html
index 4563ccda27c9e71553df02da91280fd6751a3f42..3ccc708d1afc695984418fac6c26095d96c60125 100644
--- a/tracing/tracing/ui/base/tab_view.html
+++ b/tracing/tracing/ui/base/tab_view.html
@@ -195,13 +195,13 @@ window.TracingAnalysisTabView = Polymer({
},
get tabsHidden() {
- var ts = this.shadowRoot.querySelector('tab-strip');
+ var ts = Polymer.dom(this.root).querySelector('tab-strip');
return ts.classList.contains('hidden');
},
set tabsHidden(tabsHidden) {
tabsHidden = !!tabsHidden;
- var ts = this.shadowRoot.querySelector('tab-strip');
+ var ts = Polymer.dom(this.root).querySelector('tab-strip');
if (tabsHidden)
ts.classList.add('hidden');
else
@@ -238,7 +238,7 @@ window.TracingAnalysisTabView = Polymer({
// selected tab, mark the child as the selected tab, otherwise keep
// the previous selection.
if (this.selectedTab_)
- child.removeAttribute('selected');
+ Polymer.dom(child).removeAttribute('selected');
else
this.setSelectedTabById_(tabObject.id);
}
@@ -294,7 +294,7 @@ window.TracingAnalysisTabView = Polymer({
this.clearSelectedTab_();
this.fire('selected-tab-change');
}
- child.removeAttribute('selected');
+ Polymer.dom(child).removeAttribute('selected');
delete child.selected;
// Remove the observer since we no longer care about this child.
this.splice('tabs_', i, 1);
@@ -388,7 +388,7 @@ window.TracingAnalysisTabView = Polymer({
this.selectedTab_ = this.tabs_[id];
// Disconnect observer while we mutate the child.
this.selectedTab_.observers.forAttributeSelected.disconnect();
- this.selectedTab_.content.setAttribute('selected', 'selected');
+ Polymer.dom(this.selectedTab_.content).setAttribute('selected', 'selected');
// Reconnect the observer to watch for changes in the future.
this.selectedTab_.observers.forAttributeSelected.observe(
this.selectedTab_.content, { attributeFilter: ['selected'] });
@@ -426,7 +426,7 @@ window.TracingAnalysisTabView = Polymer({
if (this.selectedTab_) {
// Disconnect observer while we mutate the child.
this.selectedTab_.observers.forAttributeSelected.disconnect();
- this.selectedTab_.content.removeAttribute('selected');
+ Polymer.dom(this.selectedTab_.content).removeAttribute('selected');
// Reconnect the observer to watch for changes in the future.
this.selectedTab_.observers.forAttributeSelected.observe(
this.selectedTab_.content, { attributeFilter: ['selected'] });
« no previous file with comments | « tracing/tracing/ui/base/scatter_chart.html ('k') | tracing/tracing/ui/base/tab_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698