if (eHTMLUnit_Pixel == value.GetUnit()) result.width = value.GetPixelValue();
if (eHTMLUnit_Integer == value.GetUnit()) result.width = value.GetIntValue();
nsSize nsSubDocumentFrame::GetMargin(){  nsSize result(-1, -1);  nsresult rv = NS_OK;  nsCOMPtr<nsIHTMLContent> content = do_QueryInterface(mContent, &rv);  if (NS_SUCCEEDED(rv) && content) {    nsHTMLValue value;    content->GetHTMLAttribute(nsHTMLAtoms::marginwidth, value);    if (eHTMLUnit_Pixel == value.GetUnit())      result.width = value.GetPixelValue();    content->GetHTMLAttribute(nsHTMLAtoms::marginheight, value);    if (eHTMLUnit_Pixel == value.GetUnit())      result.height = value.GetPixelValue();  }  return result;}