if (ParseColor(aValue, mDocument, aResult)) {
if (aResult.ParseColor(aValue, mDocument)) {
nsHTMLFrameElement::StringToAttribute(nsIAtom* aAttribute,                                      const nsAString& aValue,                                      nsHTMLValue& aResult){  if (aAttribute == nsHTMLAtoms::bordercolor) {    if (ParseColor(aValue, mDocument, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::frameborder) {    if (ParseFrameborderValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::marginwidth) {    if (ParseValueOrPercent(aValue, aResult, eHTMLUnit_Pixel)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::marginheight) {    if (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 (ParseScrollingValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  return NS_CONTENT_ATTR_NOT_THERE;}