NS_PRECONDITION(aElement != nsnull, "null ptr"); if (! aElement) return NS_ERROR_NULL_POINTER;   nsresult rv = NS_OK; if (IsElementInWidget(aElement)) { rv = CreateTemplateAndContainerContents(aElement, nsnull , nsnull ); }  return rv;
return NS_OK;
nsXULTemplateBuilder::CreateContents(nsIContent* aElement){    NS_PRECONDITION(aElement != nsnull, "null ptr");    if (! aElement)        return NS_ERROR_NULL_POINTER;    // First, make sure that the element is in the right widget -- ours.    nsresult rv = NS_OK;    if (IsElementInWidget(aElement)) {        rv = CreateTemplateAndContainerContents(aElement, nsnull /* don't care */, nsnull /* don't care */);    }    return rv;}