if (content) { switch (content->mMarkerOffset.GetUnit()) { case eStyleUnit_Coord: val->SetTwips(content->mMarkerOffset.GetCoordValue()); break; case eStyleUnit_Auto: val->SetIdent(nsLayoutAtoms::autoAtom); break; case eStyleUnit_Null: val->SetIdent(nsLayoutAtoms::none); break; default: NS_WARNING("Double check the unit"); val->SetTwips(0); break; } }
val->SetTwips(content? content->mMarkerOffset.GetCoordValue():0);
nsComputedDOMStyle::GetMarkerOffset(nsIFrame *aFrame,                                    nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStyleContent* content = nsnull;  GetStyleData(eStyleStruct_Content, (const nsStyleStruct*&)content, aFrame);  if (content) {    switch (content->mMarkerOffset.GetUnit()) {      case eStyleUnit_Coord:        val->SetTwips(content->mMarkerOffset.GetCoordValue());        break;      case eStyleUnit_Auto:        val->SetIdent(nsLayoutAtoms::autoAtom);        break;      case eStyleUnit_Null:        val->SetIdent(nsLayoutAtoms::none);        break;      default:        NS_WARNING("Double check the unit");        val->SetTwips(0);        break;    }  }  return CallQueryInterface(val, aValue);}