nsImageFrame::IconLoad::IconLoad(imgIDecoderObserver *aObserver) : mLoadObserver(aObserver), mIconsLoaded(0) { nsCOMPtr<nsIPrefBranch> prefService = do_GetService(NS_PREFSERVICE_CONTRACTID);   nsCOMPtr<nsIPrefBranchInternal> pbi = do_QueryInterface(prefService); for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kIconLoadPrefs); ++i) pbi->AddObserver(kIconLoadPrefs[i], this, PR_FALSE);  GetPrefs(prefService); }
IconLoad(nsIPresContext *aPresContext, imgIDecoderObserver* aObserver) : mRefCount(0), mLoadObserver(aObserver), mIconsLoaded(PR_FALSE) { GetPrefs(aPresContext); }
nsImageFrame::IconLoad::IconLoad(imgIDecoderObserver *aObserver)  : mLoadObserver(aObserver),    mIconsLoaded(0){  nsCOMPtr<nsIPrefBranch> prefService =    do_GetService(NS_PREFSERVICE_CONTRACTID);  // register observers  nsCOMPtr<nsIPrefBranchInternal> pbi = do_QueryInterface(prefService);  for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kIconLoadPrefs); ++i)    pbi->AddObserver(kIconLoadPrefs[i], this, PR_FALSE);  GetPrefs(prefService);}