it->AppendChildTo(text, PR_FALSE);
it->AppendChildTo(text, PR_FALSE, PR_FALSE);
HTMLContentSink::SetTitle(const nsString& aValue){  MOZ_TIMER_DEBUGLOG(("Start: nsHTMLContentSink::SetTitle()\n"));  MOZ_TIMER_START(mWatch);  NS_ASSERTION(mCurrentContext == mHeadContext, "SetTitle not in head");  if (nsnull == mTitle) {    mTitle = new nsString(aValue);  }  else {    // If the title was already set then don't try to overwrite it    // when a new title is encountered - For backwards compatiblity    //*mTitle = aValue;    MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::SetTitle()\n"));    MOZ_TIMER_STOP(mWatch);    return NS_OK;  }  ReduceEntities(*mTitle);  mTitle->CompressWhitespace(PR_TRUE, PR_TRUE);  nsCOMPtr<nsIDOMHTMLDocument> domDoc(do_QueryInterface(mHTMLDocument));  if (domDoc)    domDoc->SetTitle(*mTitle);  nsCOMPtr<nsINodeInfo> nodeInfo;  nsresult rv = mNodeInfoManager->GetNodeInfo(nsHTMLAtoms::title, nsnull,                                              kNameSpaceID_None,                                              *getter_AddRefs(nodeInfo));  NS_ENSURE_SUCCESS(rv, rv);  nsIHTMLContent* it = nsnull;  rv = NS_NewHTMLTitleElement(&it, nodeInfo);  if (NS_OK == rv) {    nsIContent* text;    rv = NS_NewTextNode(&text);    if (NS_OK == rv) {      nsIDOMText* tc;      rv = text->QueryInterface(NS_GET_IID(nsIDOMText), (void**)&tc);      if (NS_OK == rv) {        tc->SetData(*mTitle);        NS_RELEASE(tc);      }      it->AppendChildTo(text, PR_FALSE);      text->SetDocument(mDocument, PR_FALSE, PR_TRUE);      NS_RELEASE(text);    }    mHead->AppendChildTo(it, PR_FALSE);    NS_RELEASE(it);  }  MOZ_TIMER_DEBUGLOG(("Stop: nsHTMLContentSink::SetTitle()\n"));  MOZ_TIMER_STOP(mWatch);  return NS_OK;}