mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't use mFirstChild when the child count is zero. b=381057 r=aaronleventhal
This commit is contained in:
parent
477bab1e68
commit
f09fd19a6c
@ -64,7 +64,7 @@ NS_IMETHODIMP nsXULTreeAccessibleWrap::GetChildCount(PRInt32 *aAccChildCount)
|
||||
// by going through DOM structure of XUL tree
|
||||
nsAccessible::GetChildCount(aAccChildCount);
|
||||
|
||||
if (*aAccChildCount != eChildCountUninitialized) {
|
||||
if (*aAccChildCount != 0 && *aAccChildCount != eChildCountUninitialized) {
|
||||
// add the count of table cell (or tree item) accessibles, which are
|
||||
// created and appended by XUL tree accessible implementation
|
||||
PRInt32 rowCount, colCount = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user