if (displayData) { if (displayData->mDisplay == NS_STYLE_DISPLAY_NONE) { val->SetIdent(nsLayoutAtoms::none); } else { const nsAFlatCString& display = nsCSSProps::SearchKeywordTable(displayData->mDisplay, nsCSSProps::kDisplayKTable); val->SetIdent(display);
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;
nsComputedDOMStyle::GetDisplay(nsIFrame *aFrame,                               nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue *val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleDisplay *displayData = nsnull;  GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)displayData,               aFrame);  if (displayData) {    if (displayData->mDisplay == NS_STYLE_DISPLAY_NONE) {      val->SetIdent(nsLayoutAtoms::none);    } else {      const nsAFlatCString& display =        nsCSSProps::SearchKeywordTable(displayData->mDisplay,                                       nsCSSProps::kDisplayKTable);      val->SetIdent(display);    }  }  return CallQueryInterface(val, aValue);}