return NS_ERROR_OUT_OF_MEMORY; }  val->SetColor(rgb);
val->SetString(hex); } else { val->SetString("");
nsComputedDOMStyle::GetOutlineColor(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) {    nscolor color;    outline->GetOutlineColor(color);    nsDOMCSSRGBColor *rgb = nsnull;    rgb = GetDOMCSSRGBColor(color);    if (!rgb) {      delete val;      return NS_ERROR_OUT_OF_MEMORY;    }    val->SetColor(rgb);  }  return CallQueryInterface(val, aValue);}