nsCOMPtr<nsHTMLFragmentContentSink2> it; NS_NEWXPCOM(it, nsHTMLFragmentContentSink2); NS_ENSURE_TRUE(it, NS_ERROR_OUT_OF_MEMORY);
*aResult = new nsHTMLFragmentContentSink2(); NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);  NS_ADDREF(*aResult);  return NS_OK; }
NS_NewHTMLFragmentContentSink2(nsIHTMLFragmentContentSink** aResult){  NS_ENSURE_ARG_POINTER(aResult);  nsCOMPtr<nsHTMLFragmentContentSink2> it;  NS_NEWXPCOM(it, nsHTMLFragmentContentSink2);  NS_ENSURE_TRUE(it, NS_ERROR_OUT_OF_MEMORY);