mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207253 - make getChildCountCB correctly deal with outerdoc accessibles with proxy children, r=tbsaunde
This commit is contained in:
parent
164f079e48
commit
966a34c2af
@ -827,7 +827,15 @@ getChildCountCB(AtkObject *aAtkObj)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return static_cast<gint>(accWrap->EmbeddedChildCount());
|
||||
uint32_t count = accWrap->EmbeddedChildCount();
|
||||
if (count) {
|
||||
return static_cast<gint>(count);
|
||||
}
|
||||
|
||||
OuterDocAccessible* outerDoc = accWrap->AsOuterDoc();
|
||||
if (outerDoc && outerDoc->RemoteChildDoc()) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
ProxyAccessible* proxy = GetProxy(aAtkObj);
|
||||
|
Loading…
Reference in New Issue
Block a user