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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js

Issue 2623053002: [Devtools] Fix left margin for selection element (Closed)
Patch Set: dgozman comments Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Accessibility.AXTreePane = class extends Accessibility.AccessibilitySubPane { 7 Accessibility.AXTreePane = class extends Accessibility.AccessibilitySubPane {
8 /** 8 /**
9 * @param {!Accessibility.AccessibilitySidebarView} axSidebarView 9 * @param {!Accessibility.AccessibilitySidebarView} axSidebarView
10 */ 10 */
11 constructor(axSidebarView) { 11 constructor(axSidebarView) {
12 super(Common.UIString('Accessibility Tree')); 12 super(Common.UIString('Accessibility Tree'));
13 13
14 this._axSidebarView = axSidebarView; 14 this._axSidebarView = axSidebarView;
15 this._treeOutline = this.createTreeOutline(); 15 this._treeOutline = this.createTreeOutline();
16 this._treeOutline.setPaddingSize(12);
16 17
17 this.element.classList.add('accessibility-computed'); 18 this.element.classList.add('accessibility-computed');
18 19
19 this._expandedNodes = new Set(); 20 this._expandedNodes = new Set();
20 } 21 }
21 22
22 /** 23 /**
23 * @param {?Accessibility.AccessibilityNode} axNode 24 * @param {?Accessibility.AccessibilityNode} axNode
24 * @override 25 * @override
25 */ 26 */
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 continue; 429 continue;
429 } 430 }
430 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr eePane); 431 siblingTreeElement = new Accessibility.AXNodeTreeElement(sibling, this._tr eePane);
431 if (foundInspectedNode) 432 if (foundInspectedNode)
432 this.appendChild(siblingTreeElement); 433 this.appendChild(siblingTreeElement);
433 else 434 else
434 this.insertChild(siblingTreeElement, nextIndex++); 435 this.insertChild(siblingTreeElement, nextIndex++);
435 } 436 }
436 } 437 }
437 }; 438 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698