nsCOMPtr<nsIDocument> doc(mDocument); if (!doc) { mNodeInfo->GetDocument(getter_AddRefs(doc)); } if (aResult.ParseColor(aValue, doc)) {
if (aResult.ParseColor(aValue, nsGenericHTMLContainerElement::GetOwnerDocument())) {
nsHTMLFrameSetElement::StringToAttribute(nsIAtom* aAttribute,                                         const nsAString& aValue,                                         nsHTMLValue& aResult){  if (aAttribute == nsHTMLAtoms::bordercolor) {    nsCOMPtr<nsIDocument> doc(mDocument);    if (!doc) {      mNodeInfo->GetDocument(getter_AddRefs(doc));    }    if (aResult.ParseColor(aValue, doc)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }   else if (aAttribute == nsHTMLAtoms::frameborder) {    if (nsGenericHTMLElement::ParseFrameborderValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }   else if (aAttribute == nsHTMLAtoms::border) {    if (aResult.ParseIntWithBounds(aValue, eHTMLUnit_Pixel, 0, 100)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  return NS_CONTENT_ATTR_NOT_THERE;}