2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-05-19 13:31:57 +04:00
|
|
|
|
2012-08-16 05:46:03 +04:00
|
|
|
#include "base/basictypes.h"
|
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsLayoutStatics.h"
|
|
|
|
#include "nscore.h"
|
|
|
|
|
|
|
|
#include "nsAttrValue.h"
|
|
|
|
#include "nsAutoCopyListener.h"
|
|
|
|
#include "nsColorNames.h"
|
|
|
|
#include "nsComputedDOMStyle.h"
|
|
|
|
#include "nsContentDLF.h"
|
|
|
|
#include "nsContentUtils.h"
|
|
|
|
#include "nsCSSAnonBoxes.h"
|
2012-11-15 20:36:15 +04:00
|
|
|
#include "mozilla/css/ErrorReporter.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsCSSKeywords.h"
|
2010-03-02 23:59:32 +03:00
|
|
|
#include "nsCSSParser.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsCSSProps.h"
|
|
|
|
#include "nsCSSPseudoClasses.h"
|
|
|
|
#include "nsCSSPseudoElements.h"
|
2007-03-14 22:48:51 +03:00
|
|
|
#include "nsCSSRendering.h"
|
2013-04-09 19:29:44 +04:00
|
|
|
#include "mozilla/dom/Attr.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsDOMClassInfo.h"
|
2014-01-23 07:18:51 +04:00
|
|
|
#include "nsEditorEventListener.h"
|
2014-03-17 10:56:53 +04:00
|
|
|
#include "mozilla/EventListenerManager.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsFrame.h"
|
|
|
|
#include "nsGlobalWindow.h"
|
2007-01-30 03:06:41 +03:00
|
|
|
#include "nsGkAtoms.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsImageFrame.h"
|
|
|
|
#include "nsLayoutStylesheetCache.h"
|
|
|
|
#include "nsRange.h"
|
2009-09-10 05:22:03 +04:00
|
|
|
#include "nsRegion.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsRepeatService.h"
|
2009-01-05 03:39:54 +03:00
|
|
|
#include "nsFloatManager.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsSprocketLayout.h"
|
|
|
|
#include "nsStackLayout.h"
|
|
|
|
#include "nsStyleSet.h"
|
|
|
|
#include "nsTextControlFrame.h"
|
2012-05-23 22:46:04 +04:00
|
|
|
#include "nsXBLService.h"
|
2006-12-22 20:22:18 +03:00
|
|
|
#include "txMozillaXSLTProcessor.h"
|
2011-07-29 15:48:04 +04:00
|
|
|
#include "nsTreeSanitizer.h"
|
2007-02-13 19:23:19 +03:00
|
|
|
#include "nsCellMap.h"
|
2013-11-03 06:33:23 +04:00
|
|
|
#include "nsTextFrame.h"
|
2007-05-11 00:21:12 +04:00
|
|
|
#include "nsCCUncollectableMarker.h"
|
2007-07-03 03:36:59 +04:00
|
|
|
#include "nsTextFragment.h"
|
2007-11-19 23:08:20 +03:00
|
|
|
#include "nsCSSRuleProcessor.h"
|
2011-03-29 00:11:09 +04:00
|
|
|
#include "nsCrossSiteListenerProxy.h"
|
2008-11-08 02:00:26 +03:00
|
|
|
#include "nsHTMLDNSPrefetch.h"
|
2009-06-29 02:44:22 +04:00
|
|
|
#include "nsHtml5Module.h"
|
2013-11-04 15:24:33 +04:00
|
|
|
#include "mozilla/dom/FallbackEncoding.h"
|
Bug 178324, refactor focus by moving all focus handling into one place and simplifying it, add many tests, fixes many other bugs too numerous to mention in this small checkin comment, r=josh,smichaud,ere,dbaron,marco,neil,gavin,smaug,sr=smaug (CLOSED TREE)
2009-06-10 22:00:39 +04:00
|
|
|
#include "nsFocusManager.h"
|
2009-08-09 02:00:26 +04:00
|
|
|
#include "nsListControlFrame.h"
|
2013-03-28 23:41:32 +04:00
|
|
|
#include "mozilla/dom/HTMLInputElement.h"
|
2013-02-09 00:24:47 +04:00
|
|
|
#include "SVGElementFactory.h"
|
2010-06-18 13:21:13 +04:00
|
|
|
#include "nsSVGUtils.h"
|
2011-06-02 15:11:33 +04:00
|
|
|
#include "nsMathMLAtoms.h"
|
|
|
|
#include "nsMathMLOperators.h"
|
2011-11-02 17:44:16 +04:00
|
|
|
#include "Navigator.h"
|
2013-04-15 16:38:48 +04:00
|
|
|
#include "DOMStorageObserver.h"
|
2013-09-20 13:11:25 +04:00
|
|
|
#include "CacheObserver.h"
|
2013-03-06 15:08:11 +04:00
|
|
|
#include "DisplayItemClip.h"
|
2013-09-04 15:30:57 +04:00
|
|
|
#include "ActiveLayerTracker.h"
|
2014-06-12 05:11:00 +04:00
|
|
|
#include "CounterStyleManager.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
|
2012-12-04 23:46:07 +04:00
|
|
|
#include "AudioChannelService.h"
|
2014-06-03 18:36:46 +04:00
|
|
|
#include "mozilla/dom/DataStoreService.h"
|
2012-12-04 23:46:07 +04:00
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-24 04:04:36 +04:00
|
|
|
#include "nsXULPopupManager.h"
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsXULContentUtils.h"
|
2007-03-12 08:53:33 +03:00
|
|
|
#include "nsXULPrototypeCache.h"
|
2007-04-13 00:59:01 +04:00
|
|
|
#include "nsXULTooltipListener.h"
|
2007-07-18 09:41:40 +04:00
|
|
|
|
|
|
|
#include "inDOMView.h"
|
2014-02-18 21:07:27 +04:00
|
|
|
|
|
|
|
#include "nsMenuBarListener.h"
|
2007-07-18 09:41:40 +04:00
|
|
|
#endif
|
2006-05-19 13:31:57 +04:00
|
|
|
|
2007-02-24 23:07:06 +03:00
|
|
|
#include "nsHTMLEditor.h"
|
|
|
|
#include "nsTextServicesDocument.h"
|
|
|
|
|
2013-04-04 02:13:16 +04:00
|
|
|
#ifdef MOZ_WEBSPEECH
|
|
|
|
#include "nsSynthVoiceRegistry.h"
|
|
|
|
#endif
|
|
|
|
|
2012-06-01 04:54:23 +04:00
|
|
|
#ifdef MOZ_MEDIA_PLUGINS
|
2012-11-14 23:46:40 +04:00
|
|
|
#include "MediaPluginHost.h"
|
2012-06-01 04:54:23 +04:00
|
|
|
#endif
|
|
|
|
|
2012-12-18 12:49:58 +04:00
|
|
|
#ifdef MOZ_WMF
|
|
|
|
#include "WMFDecoder.h"
|
|
|
|
#endif
|
|
|
|
|
2013-03-14 00:10:47 +04:00
|
|
|
#ifdef MOZ_GSTREAMER
|
|
|
|
#include "GStreamerFormatHelper.h"
|
|
|
|
#endif
|
|
|
|
|
2014-03-21 10:35:15 +04:00
|
|
|
#ifdef MOZ_FFMPEG
|
|
|
|
#include "FFmpegRuntimeLinker.h"
|
|
|
|
#endif
|
|
|
|
|
2012-11-14 23:46:40 +04:00
|
|
|
#include "AudioStream.h"
|
2013-01-28 22:22:37 +04:00
|
|
|
#include "Latency.h"
|
2013-08-09 02:07:42 +04:00
|
|
|
#include "WebAudioUtils.h"
|
2008-07-30 10:50:14 +04:00
|
|
|
|
2012-12-15 04:01:34 +04:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
#include "nsVolumeService.h"
|
2013-11-25 03:50:03 +04:00
|
|
|
#include "SpeakerManagerService.h"
|
2012-12-15 04:01:34 +04:00
|
|
|
using namespace mozilla::system;
|
|
|
|
#endif
|
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#include "nsError.h"
|
|
|
|
|
2008-09-11 17:20:56 +04:00
|
|
|
#include "nsJSEnvironment.h"
|
2010-04-27 13:57:32 +04:00
|
|
|
#include "nsContentSink.h"
|
2010-08-10 21:18:26 +04:00
|
|
|
#include "nsFrameMessageManager.h"
|
2011-03-07 19:58:48 +03:00
|
|
|
#include "nsRefreshDriver.h"
|
2012-03-31 20:30:13 +04:00
|
|
|
#include "nsDOMMutationObserver.h"
|
2011-05-04 15:29:56 +04:00
|
|
|
#include "nsHyphenationManager.h"
|
2011-08-23 23:03:33 +04:00
|
|
|
#include "nsEditorSpellCheck.h"
|
2012-02-24 06:43:33 +04:00
|
|
|
#include "nsWindowMemoryReporter.h"
|
2012-08-16 05:46:03 +04:00
|
|
|
#include "mozilla/dom/ContentParent.h"
|
2013-04-26 04:53:26 +04:00
|
|
|
#include "mozilla/ProcessPriorityManager.h"
|
2012-08-31 18:34:28 +04:00
|
|
|
#include "nsPermissionManager.h"
|
2012-09-28 01:37:28 +04:00
|
|
|
#include "nsCookieService.h"
|
2012-10-03 04:39:09 +04:00
|
|
|
#include "nsApplicationCacheService.h"
|
2012-10-17 08:26:00 +04:00
|
|
|
#include "mozilla/dom/time/DateCacheCleaner.h"
|
2014-03-18 08:48:22 +04:00
|
|
|
#include "mozilla/EventDispatcher.h"
|
2014-03-08 05:20:07 +04:00
|
|
|
#include "mozilla/IMEStateManager.h"
|
2013-03-24 14:32:44 +04:00
|
|
|
#include "nsDocument.h"
|
2013-06-11 19:23:13 +04:00
|
|
|
#include "mozilla/dom/HTMLVideoElement.h"
|
2014-06-19 17:20:49 +04:00
|
|
|
#include "CameraPreferences.h"
|
2011-05-04 15:29:56 +04:00
|
|
|
|
2011-03-24 06:13:56 +03:00
|
|
|
using namespace mozilla;
|
2013-09-20 13:11:25 +04:00
|
|
|
using namespace mozilla::net;
|
2011-12-20 16:07:16 +04:00
|
|
|
using namespace mozilla::dom;
|
2012-08-05 09:09:39 +04:00
|
|
|
using namespace mozilla::dom::ipc;
|
2011-03-24 06:13:56 +03:00
|
|
|
|
2010-04-19 19:41:39 +04:00
|
|
|
nsrefcnt nsLayoutStatics::sLayoutStaticRefcnt = 0;
|
2006-05-19 13:31:57 +04:00
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsLayoutStatics::Initialize()
|
|
|
|
{
|
|
|
|
NS_ASSERTION(sLayoutStaticRefcnt == 0,
|
|
|
|
"nsLayoutStatics isn't zero!");
|
|
|
|
|
|
|
|
sLayoutStaticRefcnt = 1;
|
|
|
|
NS_LOG_ADDREF(&sLayoutStaticRefcnt, sLayoutStaticRefcnt,
|
2006-07-21 01:32:22 +04:00
|
|
|
"nsLayoutStatics", 1);
|
2006-05-19 13:31:57 +04:00
|
|
|
|
|
|
|
nsresult rv;
|
|
|
|
|
2012-08-16 05:46:03 +04:00
|
|
|
ContentParent::StartUp();
|
|
|
|
|
2007-04-02 21:17:36 +04:00
|
|
|
// Register all of our atoms once
|
|
|
|
nsCSSAnonBoxes::AddRefAtoms();
|
|
|
|
nsCSSPseudoClasses::AddRefAtoms();
|
|
|
|
nsCSSPseudoElements::AddRefAtoms();
|
|
|
|
nsCSSKeywords::AddRefTable();
|
|
|
|
nsCSSProps::AddRefTable();
|
|
|
|
nsColorNames::AddRefTable();
|
|
|
|
nsGkAtoms::AddRefAtoms();
|
|
|
|
|
2013-08-20 03:24:29 +04:00
|
|
|
StartupJSEnvironment();
|
2009-09-10 05:22:03 +04:00
|
|
|
rv = nsRegion::InitStatic();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsRegion");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2011-08-31 18:54:39 +04:00
|
|
|
nsGlobalWindow::Init();
|
2011-12-20 16:07:16 +04:00
|
|
|
Navigator::Init();
|
2012-05-23 22:46:04 +04:00
|
|
|
nsXBLService::Init();
|
2011-08-31 18:54:39 +04:00
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
rv = nsContentUtils::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsContentUtils");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = nsAttrValue::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsAttrValue");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = nsTextFragment::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsTextFragment");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2011-07-15 14:18:33 +04:00
|
|
|
nsCellMap::Init();
|
2007-02-13 19:23:19 +03:00
|
|
|
|
2011-06-02 16:56:46 +04:00
|
|
|
nsCSSRendering::Init();
|
2007-03-14 22:48:51 +03:00
|
|
|
|
2011-05-02 11:11:34 +04:00
|
|
|
nsTextFrameTextRunCache::Init();
|
2007-05-10 02:02:29 +04:00
|
|
|
|
2008-11-08 02:00:26 +03:00
|
|
|
rv = nsHTMLDNSPrefetch::Initialize();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize HTML DNS prefetch");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#ifdef MOZ_XUL
|
|
|
|
rv = nsXULContentUtils::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsXULContentUtils");
|
|
|
|
return rv;
|
|
|
|
}
|
2007-07-18 09:35:23 +04:00
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
nsMathMLOperators::AddRefTable();
|
|
|
|
|
2007-02-24 23:07:06 +03:00
|
|
|
nsEditProperty::RegisterAtoms();
|
|
|
|
nsTextServicesDocument::RegisterAtoms();
|
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
#ifdef DEBUG
|
|
|
|
nsFrame::DisplayReflowStartup();
|
|
|
|
#endif
|
2013-04-09 19:29:44 +04:00
|
|
|
Attr::Initialize();
|
2006-05-19 13:31:57 +04:00
|
|
|
|
2007-07-18 01:15:49 +04:00
|
|
|
rv = txMozillaXSLTProcessor::Startup();
|
2006-12-22 20:22:18 +03:00
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize txMozillaXSLTProcessor");
|
|
|
|
return rv;
|
2006-05-19 13:31:57 +04:00
|
|
|
}
|
|
|
|
|
2013-04-15 16:38:48 +04:00
|
|
|
rv = DOMStorageObserver::Init();
|
2006-09-16 01:28:48 +04:00
|
|
|
if (NS_FAILED(rv)) {
|
2013-04-15 16:38:48 +04:00
|
|
|
NS_ERROR("Could not initialize DOMStorageObserver");
|
2006-09-16 01:28:48 +04:00
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2007-05-11 00:21:12 +04:00
|
|
|
rv = nsCCUncollectableMarker::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsCCUncollectableMarker");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2010-04-07 21:29:10 +04:00
|
|
|
rv = nsCSSRuleProcessor::Startup();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsCSSRuleProcessor");
|
|
|
|
return rv;
|
|
|
|
}
|
2008-10-21 11:15:03 +04:00
|
|
|
|
2007-07-24 04:04:36 +04:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-04 19:49:38 +04:00
|
|
|
rv = nsXULPopupManager::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsXULPopupManager");
|
|
|
|
return rv;
|
|
|
|
}
|
2007-07-24 04:04:36 +04:00
|
|
|
#endif
|
2007-07-04 19:49:38 +04:00
|
|
|
|
Bug 178324, refactor focus by moving all focus handling into one place and simplifying it, add many tests, fixes many other bugs too numerous to mention in this small checkin comment, r=josh,smichaud,ere,dbaron,marco,neil,gavin,smaug,sr=smaug (CLOSED TREE)
2009-06-10 22:00:39 +04:00
|
|
|
rv = nsFocusManager::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsFocusManager");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2013-01-28 22:22:37 +04:00
|
|
|
AsyncLatencyLogger::InitializeStatics();
|
2012-11-14 23:46:40 +04:00
|
|
|
AudioStream::InitLibrary();
|
2008-07-30 10:50:14 +04:00
|
|
|
|
2010-04-27 13:57:32 +04:00
|
|
|
nsContentSink::InitializeStatics();
|
2009-06-29 02:44:22 +04:00
|
|
|
nsHtml5Module::InitializeStatics();
|
2013-11-04 15:24:33 +04:00
|
|
|
mozilla::dom::FallbackEncoding::Initialize();
|
2011-11-24 06:48:23 +04:00
|
|
|
nsLayoutUtils::Initialize();
|
2010-06-01 06:19:35 +04:00
|
|
|
nsIPresShell::InitializeStatics();
|
2011-03-07 19:58:48 +03:00
|
|
|
nsRefreshDriver::InitializeStatics();
|
2010-06-01 06:19:35 +04:00
|
|
|
|
2011-03-29 00:18:45 +04:00
|
|
|
nsCORSListenerProxy::Startup();
|
2009-05-21 03:07:18 +04:00
|
|
|
|
2009-09-18 19:13:10 +04:00
|
|
|
NS_SealStaticAtomTable();
|
|
|
|
|
2012-02-24 06:43:33 +04:00
|
|
|
nsWindowMemoryReporter::Init();
|
2011-06-29 15:01:07 +04:00
|
|
|
|
2013-02-09 00:24:47 +04:00
|
|
|
SVGElementFactory::Init();
|
2012-05-17 08:05:04 +04:00
|
|
|
nsSVGUtils::Init();
|
|
|
|
|
2013-04-26 04:53:26 +04:00
|
|
|
ProcessPriorityManager::Init();
|
2012-08-05 09:09:39 +04:00
|
|
|
|
2013-01-07 21:37:01 +04:00
|
|
|
nsPermissionManager::AppClearDataObserverInit();
|
2012-09-29 04:03:00 +04:00
|
|
|
nsCookieService::AppClearDataObserverInit();
|
2012-10-03 04:39:09 +04:00
|
|
|
nsApplicationCacheService::AppClearDataObserverInit();
|
2012-08-31 18:34:28 +04:00
|
|
|
|
2013-06-11 19:23:13 +04:00
|
|
|
HTMLVideoElement::Init();
|
|
|
|
|
2014-02-18 21:07:27 +04:00
|
|
|
#ifdef MOZ_XUL
|
|
|
|
nsMenuBarListener::InitializeStatics();
|
|
|
|
#endif
|
|
|
|
|
2013-09-20 13:11:25 +04:00
|
|
|
CacheObserver::Init();
|
|
|
|
|
2014-06-12 05:11:00 +04:00
|
|
|
CounterStyleManager::InitializeBuiltinCounterStyles();
|
|
|
|
|
2014-06-19 17:20:49 +04:00
|
|
|
CameraPreferences::Initialize();
|
|
|
|
|
2014-07-16 09:13:28 +04:00
|
|
|
IMEStateManager::Init();
|
|
|
|
|
2006-05-19 13:31:57 +04:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsLayoutStatics::Shutdown()
|
|
|
|
{
|
2012-02-24 06:43:33 +04:00
|
|
|
// Don't need to shutdown nsWindowMemoryReporter, that will be done by the
|
|
|
|
// memory reporter manager.
|
2011-06-29 15:01:07 +04:00
|
|
|
|
2010-08-10 21:18:26 +04:00
|
|
|
nsFrameScriptExecutor::Shutdown();
|
Bug 178324, refactor focus by moving all focus handling into one place and simplifying it, add many tests, fixes many other bugs too numerous to mention in this small checkin comment, r=josh,smichaud,ere,dbaron,marco,neil,gavin,smaug,sr=smaug (CLOSED TREE)
2009-06-10 22:00:39 +04:00
|
|
|
nsFocusManager::Shutdown();
|
2007-07-24 04:04:36 +04:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-04 19:49:38 +04:00
|
|
|
nsXULPopupManager::Shutdown();
|
2007-07-24 04:04:36 +04:00
|
|
|
#endif
|
2013-04-15 16:38:48 +04:00
|
|
|
DOMStorageObserver::Shutdown();
|
2006-12-22 20:22:18 +03:00
|
|
|
txMozillaXSLTProcessor::Shutdown();
|
2013-04-09 19:29:44 +04:00
|
|
|
Attr::Shutdown();
|
2014-03-17 10:56:53 +04:00
|
|
|
EventListenerManager::Shutdown();
|
2014-03-08 05:20:07 +04:00
|
|
|
IMEStateManager::Shutdown();
|
2010-03-02 23:59:32 +03:00
|
|
|
nsCSSParser::Shutdown();
|
2010-04-07 21:29:10 +04:00
|
|
|
nsCSSRuleProcessor::Shutdown();
|
2007-05-10 02:02:29 +04:00
|
|
|
nsTextFrameTextRunCache::Shutdown();
|
2008-11-08 02:00:26 +03:00
|
|
|
nsHTMLDNSPrefetch::Shutdown();
|
2007-03-14 22:48:51 +03:00
|
|
|
nsCSSRendering::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
#ifdef DEBUG
|
|
|
|
nsFrame::DisplayReflowShutdown();
|
|
|
|
#endif
|
2007-02-13 19:23:19 +03:00
|
|
|
nsCellMap::Shutdown();
|
2013-09-04 15:30:57 +04:00
|
|
|
ActiveLayerTracker::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
|
|
|
|
// Release all of our atoms
|
|
|
|
nsColorNames::ReleaseTable();
|
|
|
|
nsCSSProps::ReleaseTable();
|
|
|
|
nsCSSKeywords::ReleaseTable();
|
|
|
|
nsRepeatService::Shutdown();
|
|
|
|
nsStackLayout::Shutdown();
|
|
|
|
nsBox::Shutdown();
|
|
|
|
|
|
|
|
#ifdef MOZ_XUL
|
|
|
|
nsXULContentUtils::Finish();
|
2007-03-12 08:53:33 +03:00
|
|
|
nsXULPrototypeCache::ReleaseGlobals();
|
2006-05-19 13:31:57 +04:00
|
|
|
nsSprocketLayout::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2013-02-09 00:24:47 +04:00
|
|
|
SVGElementFactory::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
nsMathMLOperators::ReleaseTable();
|
|
|
|
|
2009-01-05 03:39:54 +03:00
|
|
|
nsFloatManager::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
nsImageFrame::ReleaseGlobals();
|
|
|
|
|
2012-11-15 20:36:15 +04:00
|
|
|
mozilla::css::ErrorReporter::ReleaseGlobals();
|
2006-05-19 13:31:57 +04:00
|
|
|
|
|
|
|
nsTextFragment::Shutdown();
|
|
|
|
|
|
|
|
nsAttrValue::Shutdown();
|
|
|
|
nsContentUtils::Shutdown();
|
|
|
|
nsLayoutStylesheetCache::Shutdown();
|
|
|
|
|
2013-08-20 03:24:29 +04:00
|
|
|
ShutdownJSEnvironment();
|
2006-05-19 13:31:57 +04:00
|
|
|
nsGlobalWindow::ShutDown();
|
|
|
|
nsDOMClassInfo::ShutDown();
|
2009-08-09 02:00:26 +04:00
|
|
|
nsListControlFrame::Shutdown();
|
2012-05-23 22:46:04 +04:00
|
|
|
nsXBLService::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
nsAutoCopyListener::Shutdown();
|
2012-06-26 06:43:30 +04:00
|
|
|
FrameLayerBuilder::Shutdown();
|
2007-01-23 08:24:21 +03:00
|
|
|
|
2012-06-01 04:54:23 +04:00
|
|
|
#ifdef MOZ_MEDIA_PLUGINS
|
2012-12-18 12:49:58 +04:00
|
|
|
MediaPluginHost::Shutdown();
|
2012-06-01 04:54:23 +04:00
|
|
|
#endif
|
|
|
|
|
2013-03-14 00:10:47 +04:00
|
|
|
#ifdef MOZ_GSTREAMER
|
|
|
|
GStreamerFormatHelper::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2014-03-21 10:35:15 +04:00
|
|
|
#ifdef MOZ_FFMPEG
|
|
|
|
FFmpegRuntimeLinker::Unlink();
|
|
|
|
#endif
|
|
|
|
|
2012-11-14 23:46:40 +04:00
|
|
|
AudioStream::ShutdownLibrary();
|
2013-09-25 06:10:24 +04:00
|
|
|
AsyncLatencyLogger::ShutdownLogger();
|
2013-08-09 02:07:42 +04:00
|
|
|
WebAudioUtils::Shutdown();
|
2008-10-01 10:17:15 +04:00
|
|
|
|
2012-12-18 12:49:58 +04:00
|
|
|
#ifdef MOZ_WMF
|
|
|
|
WMFDecoder::UnloadDLLs();
|
|
|
|
#endif
|
|
|
|
|
2012-12-15 04:01:34 +04:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
nsVolumeService::Shutdown();
|
2013-11-25 03:50:03 +04:00
|
|
|
SpeakerManagerService::Shutdown();
|
2012-12-15 04:01:34 +04:00
|
|
|
#endif
|
|
|
|
|
2013-04-04 02:13:16 +04:00
|
|
|
#ifdef MOZ_WEBSPEECH
|
|
|
|
nsSynthVoiceRegistry::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2011-03-29 00:18:45 +04:00
|
|
|
nsCORSListenerProxy::Shutdown();
|
2012-12-18 12:49:58 +04:00
|
|
|
|
2010-06-01 06:19:35 +04:00
|
|
|
nsIPresShell::ReleaseStatics();
|
|
|
|
|
2011-07-29 15:48:04 +04:00
|
|
|
nsTreeSanitizer::ReleaseStatics();
|
|
|
|
|
2009-06-29 02:44:22 +04:00
|
|
|
nsHtml5Module::ReleaseStatics();
|
2009-06-16 13:15:46 +04:00
|
|
|
|
2013-11-04 15:24:33 +04:00
|
|
|
mozilla::dom::FallbackEncoding::Shutdown();
|
|
|
|
|
2009-09-10 05:22:03 +04:00
|
|
|
nsRegion::ShutdownStatic();
|
|
|
|
|
2014-03-18 08:48:22 +04:00
|
|
|
mozilla::EventDispatcher::Shutdown();
|
2013-08-27 13:01:37 +04:00
|
|
|
|
2013-03-28 23:41:32 +04:00
|
|
|
HTMLInputElement::DestroyUploadLastDir();
|
2011-01-13 20:45:14 +03:00
|
|
|
|
|
|
|
nsLayoutUtils::Shutdown();
|
2011-05-04 15:29:56 +04:00
|
|
|
|
|
|
|
nsHyphenationManager::Shutdown();
|
2012-03-31 20:30:13 +04:00
|
|
|
nsDOMMutationObserver::Shutdown();
|
2012-08-16 05:46:03 +04:00
|
|
|
|
2012-12-04 23:46:07 +04:00
|
|
|
AudioChannelService::Shutdown();
|
|
|
|
|
2014-06-03 18:36:46 +04:00
|
|
|
DataStoreService::Shutdown();
|
|
|
|
|
2012-08-16 05:46:03 +04:00
|
|
|
ContentParent::ShutDown();
|
2012-12-12 02:15:32 +04:00
|
|
|
|
|
|
|
nsRefreshDriver::Shutdown();
|
2013-03-24 14:32:44 +04:00
|
|
|
|
2013-03-06 15:08:11 +04:00
|
|
|
DisplayItemClip::Shutdown();
|
|
|
|
|
2013-03-24 14:32:44 +04:00
|
|
|
nsDocument::XPCOMShutdown();
|
2013-09-20 13:11:25 +04:00
|
|
|
|
|
|
|
CacheObserver::Shutdown();
|
2014-06-19 17:20:49 +04:00
|
|
|
|
|
|
|
CameraPreferences::Shutdown();
|
2006-05-19 13:31:57 +04:00
|
|
|
}
|