kEventsAtom  = NS_NewAtom("events"); kTargetsAtom = NS_NewAtom("targets");
nsXULContentUtils::Init(){    if (gRefCnt++ == 0) {        nsresult rv;        rv = nsServiceManager::GetService(kRDFServiceCID,                                          NS_GET_IID(nsIRDFService),                                          (nsISupports**) &gRDF);        if (NS_FAILED(rv)) return rv;        rv = nsComponentManager::CreateInstance(kNameSpaceManagerCID,                                                nsnull,                                                NS_GET_IID(nsINameSpaceManager),                                                (void**) &gNameSpaceManager);        if (NS_FAILED(rv)) return rv;        rv = nsComponentManager::CreateInstance(kDateTimeFormatCID,                                                nsnull,                                                NS_GET_IID(nsIDateTimeFormat),                                                (void**) &gFormat);        if (NS_FAILED(rv)) return rv;        kEventsAtom  = NS_NewAtom("events");        kTargetsAtom = NS_NewAtom("targets");        EventHandlerMapEntry* entry = kEventHandlerMap;        while (entry->mAttributeName) {            entry->mAttributeAtom = NS_NewAtom(entry->mAttributeName);            ++entry;        }        NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);        if (NS_SUCCEEDED(rv)) {            // XXX Ignore return values.            prefs->GetBoolPref(kDisableXULCachePref, &gDisableXULCache);            prefs->RegisterCallback(kDisableXULCachePref, DisableXULCacheChangedCallback, nsnull);        }    }    return NS_OK;}