if (accState == 0) { nsresult rv = accWrap->GetExtState(&accState);  if (accState == 0) return state_set; }
rv = accWrap->GetExtState(&accState); NS_ENSURE_SUCCESS(rv, state_set);  if (accState == 0) return state_set;
refStateSetCB(AtkObject *aAtkObj){    AtkStateSet *state_set = nsnull;    state_set = ATK_OBJECT_CLASS(parent_class)->ref_state_set(aAtkObj);    NS_ENSURE_SUCCESS(CheckMaiAtkObject(aAtkObj), state_set);    nsAccessibleWrap *accWrap =        NS_REINTERPRET_CAST(MaiAtkObject*, aAtkObj)->accWrap;    PRUint32 accState = 0;    nsresult rv = accWrap->GetState(&accState);    NS_ENSURE_SUCCESS(rv, state_set);    if (accState == 0) {        nsresult rv = accWrap->GetExtState(&accState);        //NS_ENSURE_SUCCESS(rv, state_set);        if (accState == 0)            return state_set;    }    nsAccessibleWrap::TranslateStates(accState, state_set);    return state_set;}