(void**) &mSelection))) PR_ASSERT(0);
(void**) &mSelection))) { NS_ERROR("unable to create DOM selection"); }  if (gRefCnt++ == 0) { kAttributeAtom = NS_NewAtom("attribute"); kElementAtom   = NS_NewAtom("element"); kIdAtom        = NS_NewAtom("id"); kObservesAtom  = NS_NewAtom("observes"); }
XULDocumentImpl::XULDocumentImpl(void)    : mArena(nsnull),      mDocumentURL(nsnull),      mDocumentURLGroup(nsnull),      mRootContent(nsnull),      mParentDocument(nsnull),      mScriptContextOwner(nsnull),      mScriptObject(nsnull),      mSelection(nsnull),      mDisplaySelection(PR_FALSE),      mNameSpaceManager(nsnull),      mAttrStyleSheet(nsnull),      mRDFService(nsnull),      mBuilders(nsnull),      mXULBuilder(nsnull),      mLocalDataSource(nsnull),      mDocumentDataSource(nsnull),      mLineBreaker(nsnull),      mParser(nsnull){    NS_INIT_REFCNT();    nsresult rv;    // construct a selection object    if (NS_FAILED(rv = nsRepository::CreateInstance(kRangeListCID,                                                    nsnull,                                                    kIDOMSelectionIID,                                                    (void**) &mSelection)))        PR_ASSERT(0);}