mIsTextWidget = PR_FALSE;
nsHTMLCopyEncoder::Init(nsIDocument* aDocument,                        const nsAString& aMimetype,                        PRUint32 aFlags){  if (!aDocument)    return NS_ERROR_INVALID_ARG;  mIsTextWidget = PR_FALSE;  Initialize();  mIsCopying = PR_TRUE;  mDocument = aDocument;  mMimeType.AssignLiteral("text/html");    // Make all links absolute when copying  // (see related bugs #57296, #41924, #58646, #32768)  mFlags = aFlags | OutputAbsoluteLinks;  if (!mDocument->IsScriptEnabled())    mFlags |= OutputNoScriptContent;  return NS_OK;}