mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1215657 - make AccessibleWrap::get_accSelection work with proxies r=davidb
This commit is contained in:
parent
c78db0bac2
commit
bde12e1837
@ -833,7 +833,17 @@ AccessibleWrap::get_accSelection(VARIANT __RPC_FAR *pvarChildren)
|
||||
|
||||
if (IsSelect()) {
|
||||
nsAutoTArray<Accessible*, 10> selectedItems;
|
||||
SelectedItems(&selectedItems);
|
||||
if (IsProxy()) {
|
||||
nsTArray<ProxyAccessible*> proxies;
|
||||
Proxy()->SelectedItems(&proxies);
|
||||
|
||||
uint32_t selectedCount = proxies.Length();
|
||||
for (uint32_t i = 0; i < selectedCount; i++) {
|
||||
selectedItems.AppendElement(WrapperFor(proxies[i]));
|
||||
}
|
||||
} else {
|
||||
SelectedItems(&selectedItems);
|
||||
}
|
||||
|
||||
// 1) Create and initialize the enumeration
|
||||
RefPtr<AccessibleEnumerator> pEnum = new AccessibleEnumerator(selectedItems);
|
||||
|
Loading…
Reference in New Issue
Block a user