if (outline) { PRUint8 outlineStyle = outline->GetOutlineStyle(); if (outlineStyle == NS_STYLE_BORDER_STYLE_NONE) { val->SetIdent(nsLayoutAtoms::none); } else { const nsAFlatCString& style= nsCSSProps::SearchKeywordTable(outlineStyle, nsCSSProps::kBorderStyleKTable); val->SetIdent(style); }
if(outline) { const nsCString& style= nsCSSProps::SearchKeywordTable(outline->GetOutlineStyle(), nsCSSProps::kBorderStyleKTable); val->SetString(style); } else { val->SetString("");
nsComputedDOMStyle::GetOutlineStyle(nsIFrame *aFrame,                                    nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleOutline* outline = nsnull;  GetStyleData(eStyleStruct_Outline, (const nsStyleStruct*&)outline, aFrame);  if (outline) {    PRUint8 outlineStyle = outline->GetOutlineStyle();    if (outlineStyle == NS_STYLE_BORDER_STYLE_NONE) {      val->SetIdent(nsLayoutAtoms::none);    } else {      const nsAFlatCString& style=        nsCSSProps::SearchKeywordTable(outlineStyle,                                       nsCSSProps::kBorderStyleKTable);      val->SetIdent(style);    }  }  return CallQueryInterface(val, aValue);}