content->SetText(mText, mTextLength, PR_FALSE);   nsIContent *parent = GetCurrentContent();  if (!parent) { parent = mRoot; }  rv = parent->AppendChildTo(content, PR_FALSE, PR_FALSE);  mTextLength = 0;  return rv; }
nsHTMLFragmentContentSink::FlushText(){  if (0 == mTextLength) {    return NS_OK;  }  nsCOMPtr<nsITextContent> content;  nsresult rv = NS_NewTextNode(getter_AddRefs(content));  NS_ENSURE_SUCCESS(rv, rv);