nsCOMPtr<nsIContent> content; aFrame->GetContent(getter_AddRefs(content));
GetAttribute(nsIFrame* aFrame, nsIAtom* inAttribute, nsCString& outValue){  if (!aFrame)    return PR_FALSE;    nsCOMPtr<nsIContent> content;  aFrame->GetContent(getter_AddRefs(content));  nsAutoString attr;  nsresult res = content->GetAttr(kNameSpaceID_None, inAttribute, attr);  outValue = NS_LossyConvertUCS2toASCII(attr).get();  return ( res != NS_CONTENT_ATTR_NO_VALUE &&         !(res != NS_CONTENT_ATTR_NOT_THERE && attr.IsEmpty()));}