if (accRole == ATK_ROLE_MENU_ITEM) {
if (accRole == nsIAccessible::ROLE_MENUITEM) {
getRoleCB(AtkObject *aAtkObj){    NS_ENSURE_SUCCESS(CheckMaiAtkObject(aAtkObj), ATK_ROLE_INVALID);    if (aAtkObj->role == ATK_ROLE_INVALID) {        nsAccessibleWrap *accWrap =            NS_REINTERPRET_CAST(MaiAtkObject*, aAtkObj)->accWrap;        PRUint32 accRole;        nsresult rv = accWrap->GetRole(&accRole);        NS_ENSURE_SUCCESS(rv, ATK_ROLE_INVALID);        //the cross-platform Accessible object returns the same value for        //both "ATK_ROLE_MENU_ITEM" and "ATK_ROLE_MENU"        if (accRole == ATK_ROLE_MENU_ITEM) {            PRInt32 childCount = 0;            accWrap->GetChildCount(&childCount);            if (childCount > 0)                accRole = ATK_ROLE_MENU;        }        aAtkObj->role = NS_STATIC_CAST(AtkRole, accRole);    }    return aAtkObj->role;}