| Index: tracing/tracing/ui/side_panel/side_panel_container.html
|
| diff --git a/tracing/tracing/ui/side_panel/side_panel_container.html b/tracing/tracing/ui/side_panel/side_panel_container.html
|
| index 54287ba34c159c98f7aacbef66d09927bbea5cc0..5513f667464b93701f3082c99b4bfa3449562ede 100644
|
| --- a/tracing/tracing/ui/side_panel/side_panel_container.html
|
| +++ b/tracing/tracing/ui/side_panel/side_panel_container.html
|
| @@ -149,20 +149,20 @@ Polymer({
|
| throw new Error('Cannot activate panel: does not support this model');
|
|
|
| if (this.activePanelType) {
|
| - this.getLabelElementForPanelType_(
|
| - this.activePanelType).removeAttribute('selected');
|
| + Polymer.dom(this.getLabelElementForPanelType_(
|
| + this.activePanelType)).removeAttribute('selected');
|
| }
|
| this.activePanelContainer_.textContent = '';
|
|
|
| if (panelType === undefined) {
|
| - this.removeAttribute('expanded');
|
| + Polymer.dom(this).removeAttribute('expanded');
|
| this.activePanelType_ = undefined;
|
| return;
|
| }
|
|
|
| - this.getLabelElementForPanelType_(panelType).
|
| + Polymer.dom(this.getLabelElementForPanelType_(panelType)).
|
| setAttribute('selected', true);
|
| - this.setAttribute('expanded', true);
|
| + Polymer.dom(this).setAttribute('expanded', true);
|
|
|
| Polymer.dom(this.activePanelContainer_).appendChild(panel);
|
| panel.rangeOfInterest = this.rangeOfInterest_;
|
| @@ -205,7 +205,7 @@ Polymer({
|
| var supported = panel.supportsModel(this.model);
|
| if (this.model && supported.supported) {
|
| supportedPanelTypes.push(panelType);
|
| - labelEl.setAttribute('enabled', true);
|
| + Polymer.dom(labelEl).setAttribute('enabled', true);
|
| labelEl.addEventListener('click', function() {
|
| this.activePanelType =
|
| this.activePanelType === panelType ? undefined : panelType;
|
| @@ -222,10 +222,10 @@ Polymer({
|
| if (previouslyActivePanelType &&
|
| supportedPanelTypes.indexOf(previouslyActivePanelType) != -1) {
|
| this.activePanelType = previouslyActivePanelType;
|
| - this.setAttribute('expanded', true);
|
| + Polymer.dom(this).setAttribute('expanded', true);
|
| } else {
|
| this.activePanelContainer_.textContent = '';
|
| - this.removeAttribute('expanded');
|
| + Polymer.dom(this).removeAttribute('expanded');
|
| }
|
| },
|
|
|
|
|