nsDOMAttribute::Shutdown(); nsRange::Shutdown(); nsGenericElement::Shutdown(); nsEventListenerManager::Shutdown(); nsContentList::Shutdown(); nsComputedDOMStyle::Shutdown(); CSSLoaderImpl::Shutdown(); #ifdef DEBUG nsFrame::DisplayReflowShutdown(); #endif   nsColorNames::ReleaseTable(); nsCSSProps::ReleaseTable(); nsCSSKeywords::ReleaseTable(); nsRepeatService::Shutdown(); nsStackLayout::Shutdown(); nsBox::Shutdown();  #ifdef MOZ_XUL nsXULContentUtils::Finish(); nsXULElement::ReleaseGlobals(); nsXULPrototypeElement::ReleaseGlobals(); nsXULPrototypeScript::ReleaseGlobals(); nsSprocketLayout::Shutdown(); #endif  #ifdef MOZ_MATHML nsMathMLOperators::ReleaseTable(); #endif  #ifdef MOZ_SVG #ifdef MOZ_SVG_RENDERER_LIBART NS_FreeSVGRendererLibartGlobals(); #endif #ifdef MOZ_SVG_RENDERER_GDIPLUS NS_FreeSVGRendererGDIPlusGlobals(); #endif #endif  nsCSSFrameConstructor::ReleaseGlobals(); nsTextTransformer::Shutdown(); nsSpaceManager::Shutdown(); nsImageFrame::ReleaseGlobals();  nsCSSScanner::ReleaseGlobals();  NS_IF_RELEASE(nsContentDLF::gUAStyleSheet); NS_IF_RELEASE(nsRuleNode::gLangService); nsGenericHTMLElement::Shutdown();  nsAttrValue::Shutdown(); nsContentUtils::Shutdown(); nsLayoutStylesheetCache::Shutdown(); NS_NameSpaceManagerShutdown(); nsStyleSet::FreeGlobals();  nsGlobalWindow::ShutDown(); nsDOMClassInfo::ShutDown(); nsTextControlFrame::ShutDown(); nsXBLWindowKeyHandler::ShutDown(); nsAutoCopyListener::Shutdown(); }
nsCOMPtr<nsIExceptionService> xs = do_GetService(NS_EXCEPTIONSERVICE_CONTRACTID); if (xs && gXPathExceptionProvider) { xs->UnregisterExceptionProvider(gXPathExceptionProvider, NS_ERROR_MODULE_DOM_XPATH); } NS_IF_RELEASE(gXPathExceptionProvider);
Shutdown(){  NS_PRECONDITION(gInitialized, "module not initialized");  if (!gInitialized)    return;  gInitialized = PR_FALSE;  nsDOMAttribute::Shutdown();  nsRange::Shutdown();  nsGenericElement::Shutdown();  nsEventListenerManager::Shutdown();  nsContentList::Shutdown();  nsComputedDOMStyle::Shutdown();  CSSLoaderImpl::Shutdown();#ifdef DEBUG  nsFrame::DisplayReflowShutdown();#endif  // Release all of our atoms  nsColorNames::ReleaseTable();  nsCSSProps::ReleaseTable();  nsCSSKeywords::ReleaseTable();  nsRepeatService::Shutdown();  nsStackLayout::Shutdown();  nsBox::Shutdown();#ifdef MOZ_XUL  nsXULContentUtils::Finish();  nsXULElement::ReleaseGlobals();  nsXULPrototypeElement::ReleaseGlobals();  nsXULPrototypeScript::ReleaseGlobals();  nsSprocketLayout::Shutdown();#endif#ifdef MOZ_MATHML  nsMathMLOperators::ReleaseTable();#endif#ifdef MOZ_SVG#ifdef MOZ_SVG_RENDERER_LIBART  NS_FreeSVGRendererLibartGlobals();#endif#ifdef MOZ_SVG_RENDERER_GDIPLUS  NS_FreeSVGRendererGDIPlusGlobals();#endif#endif  nsCSSFrameConstructor::ReleaseGlobals();  nsTextTransformer::Shutdown();  nsSpaceManager::Shutdown();  nsImageFrame::ReleaseGlobals();  nsCSSScanner::ReleaseGlobals();  NS_IF_RELEASE(nsContentDLF::gUAStyleSheet);  NS_IF_RELEASE(nsRuleNode::gLangService);  nsGenericHTMLElement::Shutdown();  nsAttrValue::Shutdown();  nsContentUtils::Shutdown();  nsLayoutStylesheetCache::Shutdown();  NS_NameSpaceManagerShutdown();  nsStyleSet::FreeGlobals();  nsGlobalWindow::ShutDown();  nsDOMClassInfo::ShutDown();  nsTextControlFrame::ShutDown();  nsXBLWindowKeyHandler::ShutDown();  nsAutoCopyListener::Shutdown();}