nsCOMPtr<nsIAtom> unitAtom = NS_NewAtom(unitStr);
nsCOMPtr<nsIAtom> unitAtom = do_GetAtom(unitStr);
PRUint16 nsSVGLength::GetUnitTypeForString(const char* unitStr){  if (!unitStr || *unitStr=='\0') return SVG_LENGTHTYPE_NUMBER;                     nsCOMPtr<nsIAtom> unitAtom = NS_NewAtom(unitStr);  if (unitAtom == nsSVGAtoms::px)    return SVG_LENGTHTYPE_PX;  else if (unitAtom == nsSVGAtoms::mm)    return SVG_LENGTHTYPE_MM;  else if (unitAtom == nsSVGAtoms::cm)    return SVG_LENGTHTYPE_CM;  else if (unitAtom == nsSVGAtoms::in)    return SVG_LENGTHTYPE_IN;  else if (unitAtom == nsSVGAtoms::pt)    return SVG_LENGTHTYPE_PT;  else if (unitAtom == nsSVGAtoms::pc)    return SVG_LENGTHTYPE_PC;  else if (unitAtom == nsSVGAtoms::ems)    return SVG_LENGTHTYPE_EMS;  else if (unitAtom == nsSVGAtoms::exs)    return SVG_LENGTHTYPE_EXS;  else if (unitAtom == nsSVGAtoms::percentage)    return SVG_LENGTHTYPE_PERCENTAGE;  return SVG_LENGTHTYPE_UNKNOWN;}