nsCOMPtr<nsIContent> content; aFrame->GetContent(getter_AddRefs(content));
nsIContent* content = aFrame->GetContent();
static PRInt32 CheckIntegerAttr(nsIFrame *aFrame, nsIAtom *aAtom){  if (!aFrame)    return 0;  nsCOMPtr<nsIContent> content;  aFrame->GetContent(getter_AddRefs(content));  if (!content)    return 0;  nsAutoString attr;  content->GetAttr(kNameSpaceID_None, aAtom, attr);  if (attr.IsEmpty())    return 0;  PRInt32 error;  PRInt32 retval = attr.ToInteger(&error);  return retval;}