nsIDOMHTMLSelectElement* select = nsnull; nsresult result = mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&select); if ((NS_OK == result) && select) { result = select->GetMultiple(aMultiple); NS_RELEASE(select);
nsIDOMHTMLSelectElement* thisSelect = nsnull; nsresult result = mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&thisSelect); if ((NS_OK == result) && thisSelect) { result = thisSelect->GetMultiple(aMultiple); NS_RELEASE(thisSelect);
nsSelectControlFrame::GetMultiple(PRBool* aMultiple, nsIDOMHTMLSelectElement* aSelect){  if (!aSelect) {    nsIDOMHTMLSelectElement* select = nsnull;    nsresult result = mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&select);    if ((NS_OK == result) && select) {      result = select->GetMultiple(aMultiple);      NS_RELEASE(select);    }     return result;  } else {    return aSelect->GetMultiple(aMultiple);  }}