default: NS_WARNING("Double Check the Unit!");  case eStyleUnit_Auto: val->SetIdent(nsLayoutAtoms::autoAtom); break;
} aFrame->GetParent(&aFrame);
nsComputedDOMStyle::GetZIndex(nsIFrame *aFrame,                              nsIDOMCSSValue** aValue){  nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  const nsStylePosition* position = nsnull;  GetStyleData(eStyleStruct_Position, (const nsStyleStruct*&)position, aFrame);  if (position) {    switch (position->mZIndex.GetUnit()) {      case eStyleUnit_Integer:        val->SetNumber(position->mZIndex.GetIntValue());        break;      default:        NS_WARNING("Double Check the Unit!");        // fall through      case eStyleUnit_Auto:        val->SetIdent(nsLayoutAtoms::autoAtom);        break;    }  }      return CallQueryInterface(val, aValue);}