switch(prefType) { case kPresContext_UseDocumentFonts : aValue = mUseDocumentFonts; rv = NS_OK; break; case kPresContext_UseDocumentColors: aValue = mUseDocumentColors; rv = NS_OK; break; case kPresContext_UnderlineLinks: aValue = mUnderlineLinks; rv = NS_OK; break; default : rv = NS_ERROR_FAILURE;
return PR_FALSE;
nsPresContext::GetCachedBoolPref(PRUint32 prefType, PRBool &aValue){  nsresult rv = NS_ERROR_FAILURE;  switch(prefType) {  case kPresContext_UseDocumentFonts :    aValue = mUseDocumentFonts;    rv = NS_OK;    break;  case kPresContext_UseDocumentColors:    aValue = mUseDocumentColors;    rv = NS_OK;    break;  case kPresContext_UnderlineLinks:    aValue = mUnderlineLinks;    rv = NS_OK;    break;  default :    rv = NS_ERROR_FAILURE;  }  return rv;}