return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue), (void **)&aValue);
return CallQueryInterface(val, &aValue);
nsComputedDOMStyle::GetBorderWidthFor(PRUint8 aSide,                                      nsIFrame *aFrame,                                      nsIDOMCSSPrimitiveValue*& aValue){  nsROCSSPrimitiveValue* val=GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleBorder* border = nsnull;  GetStyleData(eStyleStruct_Border, (const nsStyleStruct*&)border, aFrame);  if(border) {    nsStyleCoord coord;    switch(aSide) {      case NS_SIDE_TOP:        border->mBorder.GetTop(coord); break;      case NS_SIDE_BOTTOM :        border->mBorder.GetBottom(coord); break;      case NS_SIDE_LEFT :        border->mBorder.GetLeft(coord); break;      case NS_SIDE_RIGHT :        border->mBorder.GetRight(coord); break;      default:        NS_WARNING("double check the side");        break;    }    switch(coord.GetUnit()) {      case eStyleUnit_Coord:        val->SetTwips(coord.GetCoordValue());  break;      case eStyleUnit_Integer:      case eStyleUnit_Proportional:      case eStyleUnit_Enumerated:      case eStyleUnit_Chars:        {          const nsCString& width=            nsCSSProps::SearchKeywordTable(coord.GetIntValue(),                                           nsCSSProps::kBorderWidthKTable);          val->SetString(width); break;        }      default:        NS_WARNING("double check the unit");        break;    }  }  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}