Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js |
| index 7cf4c792867722f9aba44427d91411525035dda9..ab8dd42c041902298e34b2664eaeb3def67932ee 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js |
| @@ -10,6 +10,7 @@ WebInspector.AccessibilitySidebarView = function() |
| { |
| WebInspector.ThrottledWidget.call(this); |
| this._axNodeSubPane = null; |
| + this._ariaSubPane = null |
|
dgozman
2016/07/19 18:13:12
style: missing semicolon
aboxhall
2016/07/21 21:39:26
Done.
|
| this._node = null; |
| this._sidebarPaneStack = null; |
| WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pullNode, this); |
| @@ -59,9 +60,15 @@ WebInspector.AccessibilitySidebarView.prototype = { |
| this._axNodeSubPane.show(this.element); |
| this._axNodeSubPane.expandPane(); |
| + this._ariaSubPane = new WebInspector.ARIAAttributesPane(); |
| + this._ariaSubPane.setNode(this.node()); |
| + this._ariaSubPane.show(this.element); |
| + this._ariaSubPane.expandPane(); |
| + |
| this._sidebarPaneStack = new WebInspector.SidebarPaneStack(); |
| this._sidebarPaneStack.element.classList.add("flex-auto"); |
| this._sidebarPaneStack.show(this.element); |
| + this._sidebarPaneStack.addPane(this._ariaSubPane); |
| this._sidebarPaneStack.addPane(this._axNodeSubPane); |
| } |
| @@ -87,6 +94,8 @@ WebInspector.AccessibilitySidebarView.prototype = { |
| this._node = WebInspector.context.flavor(WebInspector.DOMNode); |
| if (this._axNodeSubPane) |
| this._axNodeSubPane.setNode(this._node); |
| + if (this._ariaSubPane) |
| + this._ariaSubPane.setNode(this._node); |
| this.update(); |
| }, |