aDeclaration->AddValue(aName, nsCSSValue(kFontWeightKTable[ix+1], eCSSUnit_Enumerated));
aDeclaration->AppendValue(aName, nsCSSValue(kFontWeightKTable[ix+1], eCSSUnit_Enumerated));
PRBool CSSParserImpl::ParseFontWeight(PRInt32* aErrorCode, nsICSSDeclaration* aDeclaration,                                      const char* aName){  static PRInt32 kFontWeightKTable[] = {    KEYWORD_NORMAL, NS_STYLE_FONT_WEIGHT_NORMAL,    KEYWORD_BOLD, NS_STYLE_FONT_WEIGHT_BOLD,    KEYWORD_BOLDER, NS_STYLE_FONT_WEIGHT_BOLDER,    KEYWORD_LIGHTER, NS_STYLE_FONT_WEIGHT_LIGHTER,    -1,  };  nsCSSToken* tk = &mToken;  if (!GetToken(aErrorCode, PR_TRUE)) {    return PR_FALSE;  }  if (eCSSToken_Ident == tk->mType) {    char cbuf[50];    tk->mIdent.ToCString(cbuf, sizeof(cbuf));    PRInt32 kid = nsCSSKeywords::LookupName(cbuf);    PRInt32 ix = SearchKeywordTable(kid, kFontWeightKTable);    if (ix < 0) {      UngetToken();      return PR_FALSE;    }    aDeclaration->AddValue(aName, nsCSSValue(kFontWeightKTable[ix+1], eCSSUnit_Enumerated));  } else if (eCSSToken_Number == tk->mType) {    PRInt32 v = (PRInt32) tk->mNumber;    if (v < 100) v = 100;    else if (v > 900) v = 900;    v = v - (v % 100);    aDeclaration->AddValue(aName, nsCSSValue(v, eCSSUnit_Integer));  } else {    UngetToken();    return PR_FALSE;  }  return PR_TRUE;}