nsIDOMCSSPrimitiveValue*& aValue)
nsIDOMCSSValue** 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(NS_LITERAL_STRING("none")); break;    case NS_STYLE_DISPLAY_BLOCK :      val->SetString(NS_LITERAL_STRING("block")); break;    case NS_STYLE_DISPLAY_INLINE :      val->SetString(NS_LITERAL_STRING("inline")); break;    case NS_STYLE_DISPLAY_INLINE_BLOCK :      val->SetString(NS_LITERAL_STRING("inline-block")); break;    case NS_STYLE_DISPLAY_LIST_ITEM :      val->SetString(NS_LITERAL_STRING("list-item")); break;    case NS_STYLE_DISPLAY_MARKER :      val->SetString(NS_LITERAL_STRING("marker")); break;    case NS_STYLE_DISPLAY_RUN_IN :      val->SetString(NS_LITERAL_STRING("run-in")); break;    case NS_STYLE_DISPLAY_COMPACT :      val->SetString(NS_LITERAL_STRING("compact")); break;    case NS_STYLE_DISPLAY_TABLE :      val->SetString(NS_LITERAL_STRING("table")); break;    case NS_STYLE_DISPLAY_INLINE_TABLE :      val->SetString(NS_LITERAL_STRING("inline-table")); break;    case NS_STYLE_DISPLAY_TABLE_ROW_GROUP :      val->SetString(NS_LITERAL_STRING("table-row-group")); break;    case NS_STYLE_DISPLAY_TABLE_COLUMN :      val->SetString(NS_LITERAL_STRING("table-column")); break;    case NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP :      val->SetString(NS_LITERAL_STRING("table-column-group")); break;    case NS_STYLE_DISPLAY_TABLE_HEADER_GROUP :      val->SetString(NS_LITERAL_STRING("table-header-group")); break;    case NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP :      val->SetString(NS_LITERAL_STRING("table-footer-group")); break;    case NS_STYLE_DISPLAY_TABLE_ROW :      val->SetString(NS_LITERAL_STRING("table-row")); break;    case NS_STYLE_DISPLAY_TABLE_CELL :      val->SetString(NS_LITERAL_STRING("table-cell")); break;    case NS_STYLE_DISPLAY_TABLE_CAPTION :      val->SetString(NS_LITERAL_STRING("table-caption")); break;    case NS_STYLE_DISPLAY_MENU :      val->SetString(NS_LITERAL_STRING("menu")); break;    default :      val->SetString(NS_LITERAL_STRING("")); break;      break;    }  }  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}