PRINTF("CreatePrefStyleSheet completed: error=%ld\n",(long)result);
nsresult PresShell::CreatePreferenceStyleSheet(void){  NS_ASSERTION(mPrefStyleSheet==nsnull, "prefStyleSheet already exists");  nsresult result = NS_OK;  result = NS_NewCSSStyleSheet(&mPrefStyleSheet);  if (NS_SUCCEEDED(result)) {    NS_ASSERTION(mPrefStyleSheet, "null but no error");    nsCOMPtr<nsIURI> uri;    result = NS_NewURI(getter_AddRefs(uri), "about:PreferenceStyleSheet", nsnull);    if (NS_SUCCEEDED(result)) {      NS_ASSERTION(uri, "null but no error");      result = mPrefStyleSheet->Init(uri);      if (NS_SUCCEEDED(result)) {        mPrefStyleSheet->SetDefaultNameSpaceID(kNameSpaceID_HTML); #ifdef PREFS_USE_OVERRIDE        mStyleSet->AppendOverrideStyleSheet(mPrefStyleSheet); #else        mStyleSet->AppendBackstopStyleSheet(mPrefStyleSheet); #endif      }    }  } else {    result = NS_ERROR_OUT_OF_MEMORY;  }#ifdef NS_DEBUG  printf("CreatePrefStyleSheet completed: error=%ld\n",(long)result);#endif  return result;}