val->SetString(variant);
val->SetString(variant.get());
nsComputedDOMStyle::GetFontVariant(nsIFrame *aFrame,                             nsIDOMCSSPrimitiveValue*& aValue){  nsROCSSPrimitiveValue* val=GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleFont* font=nsnull;  GetStyleData(eStyleStruct_Font, (const nsStyleStruct*&)font, aFrame);  if(font) {    const nsCString& variant=      nsCSSProps::SearchKeywordTable(font->mFont.variant,                                     nsCSSProps::kFontVariantKTable);    val->SetString(variant);  }  else {    val->SetString("");  }  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}