const nsString& aValue,
const nsAReadableString& aValue,
nsHTMLFrameElement::StringToAttribute(nsIAtom* aAttribute,                                      const nsString& aValue,                                      nsHTMLValue& aResult){  if (aAttribute == nsHTMLAtoms::bordercolor) {    if (nsGenericHTMLElement::ParseColor(aValue, mInner.mDocument, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }   else if (aAttribute == nsHTMLAtoms::frameborder) {    // XXX need to check for correct mode    if (nsGenericHTMLElement::ParseFrameborderValue(PR_FALSE, aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }   else if (aAttribute == nsHTMLAtoms::marginwidth) {    if (nsGenericHTMLElement::ParseValueOrPercent(aValue, aResult,                                                  eHTMLUnit_Pixel)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::marginheight) {    if (nsGenericHTMLElement::ParseValueOrPercent(aValue, aResult,                                                  eHTMLUnit_Pixel)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::noresize) {    aResult.SetEmptyValue();    return NS_CONTENT_ATTR_HAS_VALUE;  }  else if (aAttribute == nsHTMLAtoms::scrolling) {    if (nsGenericHTMLElement::ParseScrollingValue(PR_FALSE, aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  return NS_CONTENT_ATTR_NOT_THERE;}