if (aImgReq != nsnull) {
if (aImgReq) {
static void SetImgAnimModeOnImgReq(imgIRequest* aImgReq, PRUint16 aMode){  if (aImgReq != nsnull) {    nsCOMPtr<imgIContainer> imgCon;    aImgReq->GetImage(getter_AddRefs(imgCon));    if (imgCon) {      imgCon->SetAnimationMode(aMode);    }  }}