if (list) { if (!list->mListStyleImage) { val->SetIdent(nsLayoutAtoms::none); } else { nsCOMPtr<nsIURI> uri; if (list->mListStyleImage) { list->mListStyleImage->GetURI(getter_AddRefs(uri)); } val->SetURI(uri); }
if(list) { val->SetString(list->mListStyleImage); } else { val->SetString("");
nsComputedDOMStyle::GetListStyleImage(nsIFrame *aFrame,                                      nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleList* list = nsnull;  GetStyleData(eStyleStruct_List, (const nsStyleStruct*&)list, aFrame);  if (list) {    if (!list->mListStyleImage) {      val->SetIdent(nsLayoutAtoms::none);    } else {      nsCOMPtr<nsIURI> uri;      if (list->mListStyleImage) {        list->mListStyleImage->GetURI(getter_AddRefs(uri));      }      val->SetURI(uri);    }  }      return CallQueryInterface(val, aValue);}