Bug 130827

Summary: Web Inspector: AXI: expose selectedChildNodeIds of list boxes, tree controls, etc., and reconcile UI with childNodeIds
Product: WebKit Reporter: James Craig <jcraig>
Component: Web InspectorAssignee: James Craig <jcraig>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P1 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
timothy: review+
patch with review feedback none

Description James Craig 2014-03-27 01:54:14 PDT
Web Inspector: AXI: expose selected children of list boxes, tree controls, etc.
Comment 1 Radar WebKit Bug Importer 2014-03-27 01:54:29 PDT
<rdar://problem/16442393>
Comment 2 James Craig 2014-03-27 19:48:29 PDT
Created attachment 228018 [details]
patch
Comment 3 Timothy Hatcher 2014-03-27 20:49:37 PDT
Comment on attachment 228018 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=228018&action=review

> Source/WebCore/inspector/InspectorDOMAgent.cpp:1561
> +                for (const auto& selectedChildObject : selectedChildren) {

No need for const, IIRC.

> Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:393
> +                    this._accessibilityNodeChildrenRow.label = WebInspector.UIString("Child");                

I'd say Children is fine for the singular case too. Just not if a count is part if the label.

> Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:414
> +                    this._accessibilityNodeSelectedChildrenRow.label = WebInspector.UIString("Selected Item");                

Hmm. I think this is fine though.
Comment 4 James Craig 2014-03-27 22:21:53 PDT
Created attachment 228024 [details]
patch with review feedback
Comment 5 WebKit Commit Bot 2014-03-27 23:01:06 PDT
Comment on attachment 228024 [details]
patch with review feedback

Clearing flags on attachment: 228024

Committed r166398: <http://trac.webkit.org/changeset/166398>
Comment 6 WebKit Commit Bot 2014-03-27 23:01:11 PDT
All reviewed patches have been landed.  Closing bug.