nsPresContext::GetCachedBoolPref(PRUint32 prefType, PRBool &aValue) { nsresult rv = NS_ERROR_FAILURE;
PRBool GetCachedBoolPref(PRUint32 aPrefType) const {   switch (aPrefType) { case kPresContext_UseDocumentFonts: return mUseDocumentFonts; case kPresContext_UseDocumentColors: return mUseDocumentColors; case kPresContext_UnderlineLinks: return mUnderlineLinks; default: NS_ERROR("Invalid arg passed to GetCachedBoolPref"); }
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;}