nsString value; if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, atom, value))
nsAutoString value; if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttr(kNameSpaceID_None, atom, value))
nsGfxScrollFrameInner::GetIntegerAttribute(nsIFrame* aFrame, nsIAtom* atom, PRInt32 defaultValue){    nsCOMPtr<nsIContent> content;    aFrame->GetContent(getter_AddRefs(content));    nsString value;    if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, atom, value))    {      PRInt32 error;      // convert it to an integer      defaultValue = value.ToInteger(&error);    }    return defaultValue;}