return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue), (void **)&aValue);
return CallQueryInterface(val, &aValue);
nsComputedDOMStyle::GetDisplay(nsIFrame *aFrame,                               nsIDOMCSSPrimitiveValue*& aValue){  nsROCSSPrimitiveValue *val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleDisplay* display = nsnull;  GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)display, aFrame);  if (display) {    switch (display->mDisplay) {    case NS_STYLE_DISPLAY_NONE :      val->SetString("none"); break;    case NS_STYLE_DISPLAY_BLOCK :      val->SetString("block"); break;    case NS_STYLE_DISPLAY_INLINE :      val->SetString("inline"); break;    case NS_STYLE_DISPLAY_INLINE_BLOCK :      val->SetString("inline_block"); break;    case NS_STYLE_DISPLAY_LIST_ITEM :      val->SetString("list-item"); break;    case NS_STYLE_DISPLAY_MARKER :      val->SetString("marker"); break;    case NS_STYLE_DISPLAY_RUN_IN :      val->SetString("run-in"); break;    case NS_STYLE_DISPLAY_COMPACT :      val->SetString("compact"); break;    case NS_STYLE_DISPLAY_TABLE :      val->SetString("table"); break;    case NS_STYLE_DISPLAY_INLINE_TABLE :      val->SetString("inline-table"); break;    case NS_STYLE_DISPLAY_TABLE_ROW_GROUP :      val->SetString("table-row-croup"); break;    case NS_STYLE_DISPLAY_TABLE_COLUMN :      val->SetString("table-column"); break;    case NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP :      val->SetString("table-column-group"); break;    case NS_STYLE_DISPLAY_TABLE_HEADER_GROUP :      val->SetString("table-header-group"); break;    case NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP :      val->SetString("table-footer-group"); break;    case NS_STYLE_DISPLAY_TABLE_ROW :      val->SetString("table-row"); break;    case NS_STYLE_DISPLAY_TABLE_CELL :      val->SetString("table-cell"); break;    case NS_STYLE_DISPLAY_TABLE_CAPTION :      val->SetString("table-caption"); break;    case NS_STYLE_DISPLAY_MENU :      val->SetString("menu"); break;    default :      val->SetString(""); break;      break;    }  }  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}