rv = rdfDoc->CreateContents(unconstThis);
rv = rdfDoc->CreateContents((nsIStyledContent*) unconstThis);
RDFElementImpl::EnsureContentsGenerated(void) const{    if (! mContentsMustBeGenerated)        return NS_OK;    nsresult rv;    // Ensure that the element is actually _in_ the document tree;    // otherwise, somebody is trying to generate children for a node    // that's not currently in the content model.    NS_PRECONDITION(mDocument != nsnull, "element not in tree");    if (!mDocument)        return NS_ERROR_NOT_INITIALIZED;    // XXX hack because we can't use "mutable"    RDFElementImpl* unconstThis = NS_CONST_CAST(RDFElementImpl*, this);    if (! unconstThis->mChildren) {        if (NS_FAILED(rv = NS_NewISupportsArray(&unconstThis->mChildren)))            return rv;    }    // Clear this value *first*, so we can re-enter the nsIContent    // getters if needed.    unconstThis->mContentsMustBeGenerated = PR_FALSE;    nsCOMPtr<nsIRDFDocument> rdfDoc;    if (NS_FAILED(rv = mDocument->QueryInterface(kIRDFDocumentIID,                                                 (void**) getter_AddRefs(rdfDoc))))        return rv;    rv = rdfDoc->CreateContents(unconstThis);    NS_ASSERTION(NS_SUCCEEDED(rv), "problem creating kids");    return rv;}