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

Unified Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js

Issue 2614553002: Don't sync DOM selection for root a11y node (Closed)
Patch Set: Use arrow function Created 3 years, 12 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 | « third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bac6c271de99ace88b62b955f4fb92efabca7308..7e5c82ed03b5347ef886c1190320332057b7cd74 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
@@ -10,7 +10,7 @@ Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget {
this._node = null;
this._axNode = null;
this._sidebarPaneStack = UI.viewManager.createStackLocation();
- this._treeSubPane = new Accessibility.AXTreePane();
+ this._treeSubPane = new Accessibility.AXTreePane(this);
this._sidebarPaneStack.showView(this._treeSubPane);
this._ariaSubPane = new Accessibility.ARIAAttributesPane();
this._sidebarPaneStack.showView(this._ariaSubPane);
@@ -29,6 +29,14 @@ Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget {
}
/**
+ * @param {?SDK.DOMNode} node
+ */
+ setNode(node) {
+ this._node = node;
+ this.update();
+ }
+
+ /**
* @param {?Accessibility.AccessibilityNode} axNode
*/
accessibilityNodeCallback(axNode) {
@@ -98,8 +106,7 @@ Accessibility.AccessibilitySidebarView = class extends UI.ThrottledWidget {
}
_pullNode() {
- this._node = UI.context.flavor(SDK.DOMNode);
- this.update();
+ this.setNode(UI.context.flavor(SDK.DOMNode));
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698