PRUint32 value = (PRUint32)round(mToken.mNumber*255);
PRUint32 value = (PRUint32)NSToIntRound(mToken.mNumber*255);
PRBool CSSParserImpl::ParseColorOpacity(PRInt32& aErrorCode, PRUint8& aOpacity){  if (!GetToken(aErrorCode, PR_TRUE)) {    REPORT_UNEXPECTED_EOF(NS_LITERAL_STRING("opacity in color value"));    return PR_FALSE;  }  if (mToken.mType != eCSSToken_Number) {    REPORT_UNEXPECTED_TOKEN(      NS_LITERAL_STRING("Expected a number but found"));    UngetToken();    return PR_FALSE;  }  PRUint32 value = (PRUint32)round(mToken.mNumber*255);  if (!ExpectSymbol(aErrorCode, ')', PR_TRUE)) {    REPORT_UNEXPECTED_TOKEN(NS_LITERAL_STRING("Expected ')' but found"));    return PR_FALSE;  }    if (value < 0) value = 0;  if (value > 255) value = 255;  aOpacity = (PRUint8)value;  return PR_TRUE;}