PRUint8 borderStyle = NS_STYLE_BORDER_STYLE_NONE;  if (border) { borderStyle = border->GetBorderStyle(aSide);
if(border) { const nsCString& style= nsCSSProps::SearchKeywordTable(border->GetBorderStyle(aSide), nsCSSProps::kBorderStyleKTable); val->SetString(style); } else { val->SetString("");
nsComputedDOMStyle::GetBorderStyleFor(PRUint8 aSide, nsIFrame *aFrame,                                      nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleBorder* border = nsnull;  GetStyleData(eStyleStruct_Border, (const nsStyleStruct*&)border, aFrame);  PRUint8 borderStyle = NS_STYLE_BORDER_STYLE_NONE;  if (border) {    borderStyle = border->GetBorderStyle(aSide);  }  if (borderStyle != NS_STYLE_BORDER_STYLE_NONE) {    const nsAFlatCString& style=      nsCSSProps::SearchKeywordTable(borderStyle,                                     nsCSSProps::kBorderStyleKTable);    val->SetIdent(style);  } else {    val->SetIdent(nsLayoutAtoms::none);  }  return CallQueryInterface(val, aValue);}