2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-15 18:46:03 -07:00
|
|
|
#include "base/basictypes.h"
|
|
|
|
|
2007-03-22 10:30:00 -07: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 08:36:15 -08:00
|
|
|
#include "mozilla/css/ErrorReporter.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsCSSKeywords.h"
|
2010-03-02 12:59:32 -08:00
|
|
|
#include "nsCSSParser.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsCSSProps.h"
|
|
|
|
#include "nsCSSPseudoClasses.h"
|
|
|
|
#include "nsCSSPseudoElements.h"
|
|
|
|
#include "nsCSSRendering.h"
|
2013-04-09 08:29:44 -07:00
|
|
|
#include "mozilla/dom/Attr.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsDOMClassInfo.h"
|
2014-01-22 19:18:51 -08:00
|
|
|
#include "nsEditorEventListener.h"
|
2014-03-16 23:56:53 -07:00
|
|
|
#include "mozilla/EventListenerManager.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsFrame.h"
|
|
|
|
#include "nsGlobalWindow.h"
|
|
|
|
#include "nsGkAtoms.h"
|
|
|
|
#include "nsImageFrame.h"
|
|
|
|
#include "nsLayoutStylesheetCache.h"
|
2015-06-25 20:52:47 -07:00
|
|
|
#include "mozilla/RuleProcessorCache.h"
|
2015-03-13 13:15:09 -07:00
|
|
|
#include "nsPrincipal.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsRange.h"
|
2009-09-09 18:22:03 -07:00
|
|
|
#include "nsRegion.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsRepeatService.h"
|
2009-01-04 16:39:54 -08:00
|
|
|
#include "nsFloatManager.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsSprocketLayout.h"
|
|
|
|
#include "nsStackLayout.h"
|
|
|
|
#include "nsStyleSet.h"
|
|
|
|
#include "nsTextControlFrame.h"
|
2012-05-23 11:46:04 -07:00
|
|
|
#include "nsXBLService.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "txMozillaXSLTProcessor.h"
|
2011-07-29 04:48:04 -07:00
|
|
|
#include "nsTreeSanitizer.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsCellMap.h"
|
2013-11-02 19:33:23 -07:00
|
|
|
#include "nsTextFrame.h"
|
2007-05-10 13:21:12 -07:00
|
|
|
#include "nsCCUncollectableMarker.h"
|
2007-07-02 16:36:59 -07:00
|
|
|
#include "nsTextFragment.h"
|
2007-11-19 12:08:20 -08:00
|
|
|
#include "nsCSSRuleProcessor.h"
|
2014-12-30 15:54:59 -08:00
|
|
|
#include "nsCORSListenerProxy.h"
|
2008-11-07 15:00:26 -08:00
|
|
|
#include "nsHTMLDNSPrefetch.h"
|
2009-06-28 15:44:22 -07:00
|
|
|
#include "nsHtml5Module.h"
|
2013-11-04 03:24:33 -08: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 11:00:39 -07:00
|
|
|
#include "nsFocusManager.h"
|
2009-08-08 15:00:26 -07:00
|
|
|
#include "nsListControlFrame.h"
|
2013-03-28 12:41:32 -07:00
|
|
|
#include "mozilla/dom/HTMLInputElement.h"
|
2013-02-08 12:24:47 -08:00
|
|
|
#include "SVGElementFactory.h"
|
2010-06-18 02:21:13 -07:00
|
|
|
#include "nsSVGUtils.h"
|
2011-06-02 04:11:33 -07:00
|
|
|
#include "nsMathMLAtoms.h"
|
|
|
|
#include "nsMathMLOperators.h"
|
2011-11-02 06:44:16 -07:00
|
|
|
#include "Navigator.h"
|
2013-04-15 05:38:48 -07:00
|
|
|
#include "DOMStorageObserver.h"
|
2013-09-20 02:11:25 -07:00
|
|
|
#include "CacheObserver.h"
|
2013-03-06 03:08:11 -08:00
|
|
|
#include "DisplayItemClip.h"
|
2013-09-04 04:30:57 -07:00
|
|
|
#include "ActiveLayerTracker.h"
|
2014-06-11 18:11:00 -07:00
|
|
|
#include "CounterStyleManager.h"
|
2014-08-05 22:19:25 -07:00
|
|
|
#include "FrameLayerBuilder.h"
|
2015-01-13 01:53:16 -08:00
|
|
|
#include "mozilla/dom/RequestSyncWifiService.h"
|
2015-03-31 15:05:54 -07:00
|
|
|
#include "AnimationCommon.h"
|
2015-09-03 13:59:00 -07:00
|
|
|
#include "LayerAnimationInfo.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-04 11:46:07 -08:00
|
|
|
#include "AudioChannelService.h"
|
2014-06-03 07:36:46 -07:00
|
|
|
#include "mozilla/dom/DataStoreService.h"
|
2015-04-10 08:27:57 -07:00
|
|
|
#include "mozilla/dom/PromiseDebugging.h"
|
2012-12-04 11:46:07 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-23 17:04:36 -07:00
|
|
|
#include "nsXULPopupManager.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsXULContentUtils.h"
|
|
|
|
#include "nsXULPrototypeCache.h"
|
2007-04-12 13:59:01 -07:00
|
|
|
#include "nsXULTooltipListener.h"
|
2007-07-17 22:41:40 -07:00
|
|
|
|
|
|
|
#include "inDOMView.h"
|
2014-02-18 09:07:27 -08:00
|
|
|
|
|
|
|
#include "nsMenuBarListener.h"
|
2007-07-17 22:41:40 -07:00
|
|
|
#endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "nsHTMLEditor.h"
|
|
|
|
#include "nsTextServicesDocument.h"
|
|
|
|
|
2013-04-03 15:13:16 -07:00
|
|
|
#ifdef MOZ_WEBSPEECH
|
|
|
|
#include "nsSynthVoiceRegistry.h"
|
|
|
|
#endif
|
|
|
|
|
2014-07-16 18:32:56 -07:00
|
|
|
#ifdef MOZ_ANDROID_OMX
|
|
|
|
#include "AndroidMediaPluginHost.h"
|
2012-05-31 17:54:23 -07:00
|
|
|
#endif
|
|
|
|
|
2013-03-13 13:10:47 -07:00
|
|
|
#ifdef MOZ_GSTREAMER
|
|
|
|
#include "GStreamerFormatHelper.h"
|
|
|
|
#endif
|
|
|
|
|
2014-03-20 23:35:15 -07:00
|
|
|
#ifdef MOZ_FFMPEG
|
|
|
|
#include "FFmpegRuntimeLinker.h"
|
|
|
|
#endif
|
|
|
|
|
2014-08-25 06:26:09 -07:00
|
|
|
#include "CubebUtils.h"
|
2013-01-28 10:22:37 -08:00
|
|
|
#include "Latency.h"
|
2013-08-08 15:07:42 -07:00
|
|
|
#include "WebAudioUtils.h"
|
2008-07-29 23:50:14 -07:00
|
|
|
|
2012-12-14 16:01:34 -08:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
#include "nsVolumeService.h"
|
|
|
|
using namespace mozilla::system;
|
|
|
|
#endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsError.h"
|
|
|
|
|
2008-09-11 06:20:56 -07:00
|
|
|
#include "nsJSEnvironment.h"
|
2010-04-27 02:57:32 -07:00
|
|
|
#include "nsContentSink.h"
|
2010-08-10 10:18:26 -07:00
|
|
|
#include "nsFrameMessageManager.h"
|
2011-03-07 08:58:48 -08:00
|
|
|
#include "nsRefreshDriver.h"
|
2012-03-31 09:30:13 -07:00
|
|
|
#include "nsDOMMutationObserver.h"
|
2011-05-04 04:29:56 -07:00
|
|
|
#include "nsHyphenationManager.h"
|
2011-08-23 12:03:33 -07:00
|
|
|
#include "nsEditorSpellCheck.h"
|
2012-02-23 18:43:33 -08:00
|
|
|
#include "nsWindowMemoryReporter.h"
|
2012-08-15 18:46:03 -07:00
|
|
|
#include "mozilla/dom/ContentParent.h"
|
2013-04-25 17:53:26 -07:00
|
|
|
#include "mozilla/ProcessPriorityManager.h"
|
2012-08-31 07:34:28 -07:00
|
|
|
#include "nsPermissionManager.h"
|
2012-09-27 14:37:28 -07:00
|
|
|
#include "nsCookieService.h"
|
2012-10-02 17:39:09 -07:00
|
|
|
#include "nsApplicationCacheService.h"
|
2012-10-16 21:26:00 -07:00
|
|
|
#include "mozilla/dom/time/DateCacheCleaner.h"
|
2014-03-17 21:48:22 -07:00
|
|
|
#include "mozilla/EventDispatcher.h"
|
2014-03-07 17:20:07 -08:00
|
|
|
#include "mozilla/IMEStateManager.h"
|
2013-03-24 03:32:44 -07:00
|
|
|
#include "nsDocument.h"
|
2013-06-11 08:23:13 -07:00
|
|
|
#include "mozilla/dom/HTMLVideoElement.h"
|
2014-06-19 06:20:49 -07:00
|
|
|
#include "CameraPreferences.h"
|
2015-02-24 19:20:00 -08:00
|
|
|
#include "TouchManager.h"
|
2015-04-07 10:59:44 -07:00
|
|
|
#include "MediaDecoder.h"
|
2015-05-04 23:32:47 -07:00
|
|
|
#include "mozilla/layers/CompositorLRU.h"
|
2015-08-18 04:42:12 -07:00
|
|
|
#include "mozilla/dom/devicestorage/DeviceStorageStatics.h"
|
2011-05-04 04:29:56 -07:00
|
|
|
|
2011-03-23 20:13:56 -07:00
|
|
|
using namespace mozilla;
|
2013-09-20 02:11:25 -07:00
|
|
|
using namespace mozilla::net;
|
2011-12-20 04:07:16 -08:00
|
|
|
using namespace mozilla::dom;
|
2012-08-04 22:09:39 -07:00
|
|
|
using namespace mozilla::dom::ipc;
|
2011-03-23 20:13:56 -07:00
|
|
|
|
2010-04-19 08:41:39 -07:00
|
|
|
nsrefcnt nsLayoutStatics::sLayoutStaticRefcnt = 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsresult
|
|
|
|
nsLayoutStatics::Initialize()
|
|
|
|
{
|
|
|
|
NS_ASSERTION(sLayoutStaticRefcnt == 0,
|
|
|
|
"nsLayoutStatics isn't zero!");
|
|
|
|
|
|
|
|
sLayoutStaticRefcnt = 1;
|
|
|
|
NS_LOG_ADDREF(&sLayoutStaticRefcnt, sLayoutStaticRefcnt,
|
|
|
|
"nsLayoutStatics", 1);
|
|
|
|
|
|
|
|
nsresult rv;
|
|
|
|
|
2012-08-15 18:46:03 -07:00
|
|
|
ContentParent::StartUp();
|
|
|
|
|
2007-04-02 10:17:36 -07:00
|
|
|
// Register all of our atoms once
|
|
|
|
nsCSSAnonBoxes::AddRefAtoms();
|
|
|
|
nsCSSPseudoClasses::AddRefAtoms();
|
|
|
|
nsCSSPseudoElements::AddRefAtoms();
|
|
|
|
nsCSSKeywords::AddRefTable();
|
|
|
|
nsCSSProps::AddRefTable();
|
|
|
|
nsColorNames::AddRefTable();
|
|
|
|
nsGkAtoms::AddRefAtoms();
|
|
|
|
|
2013-08-19 16:24:29 -07:00
|
|
|
StartupJSEnvironment();
|
2009-09-09 18:22:03 -07:00
|
|
|
rv = nsRegion::InitStatic();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsRegion");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2011-08-31 07:54:39 -07:00
|
|
|
nsGlobalWindow::Init();
|
2011-12-20 04:07:16 -08:00
|
|
|
Navigator::Init();
|
2012-05-23 11:46:04 -07:00
|
|
|
nsXBLService::Init();
|
2011-08-31 07:54:39 -07:00
|
|
|
|
2007-03-22 10:30:00 -07: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 03:18:33 -07:00
|
|
|
nsCellMap::Init();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-06-02 05:56:46 -07:00
|
|
|
nsCSSRendering::Init();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-05-02 00:11:34 -07:00
|
|
|
nsTextFrameTextRunCache::Init();
|
2007-05-09 15:02:29 -07:00
|
|
|
|
2008-11-07 15:00:26 -08:00
|
|
|
rv = nsHTMLDNSPrefetch::Initialize();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize HTML DNS prefetch");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef MOZ_XUL
|
|
|
|
rv = nsXULContentUtils::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsXULContentUtils");
|
|
|
|
return rv;
|
|
|
|
}
|
2007-07-17 22:35:23 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
nsMathMLOperators::AddRefTable();
|
|
|
|
|
|
|
|
nsTextServicesDocument::RegisterAtoms();
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
nsFrame::DisplayReflowStartup();
|
|
|
|
#endif
|
2013-04-09 08:29:44 -07:00
|
|
|
Attr::Initialize();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-07-17 14:15:49 -07:00
|
|
|
rv = txMozillaXSLTProcessor::Startup();
|
2007-03-22 10:30:00 -07:00
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize txMozillaXSLTProcessor");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2013-04-15 05:38:48 -07:00
|
|
|
rv = DOMStorageObserver::Init();
|
2007-03-22 10:30:00 -07:00
|
|
|
if (NS_FAILED(rv)) {
|
2013-04-15 05:38:48 -07:00
|
|
|
NS_ERROR("Could not initialize DOMStorageObserver");
|
2007-03-22 10:30:00 -07:00
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2007-05-10 13:21:12 -07:00
|
|
|
rv = nsCCUncollectableMarker::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsCCUncollectableMarker");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2015-02-26 09:02:19 -08:00
|
|
|
nsCSSParser::Startup();
|
2015-02-20 22:31:09 -08:00
|
|
|
nsCSSRuleProcessor::Startup();
|
2008-10-21 00:15:03 -07:00
|
|
|
|
2007-07-23 17:04:36 -07:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-04 08:49:38 -07:00
|
|
|
rv = nsXULPopupManager::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsXULPopupManager");
|
|
|
|
return rv;
|
|
|
|
}
|
2007-07-23 17:04:36 -07:00
|
|
|
#endif
|
2007-07-04 08:49:38 -07: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 11:00:39 -07:00
|
|
|
rv = nsFocusManager::Init();
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_ERROR("Could not initialize nsFocusManager");
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2013-01-28 10:22:37 -08:00
|
|
|
AsyncLatencyLogger::InitializeStatics();
|
2014-08-25 06:26:09 -07:00
|
|
|
CubebUtils::InitLibrary();
|
2008-07-29 23:50:14 -07:00
|
|
|
|
2010-04-27 02:57:32 -07:00
|
|
|
nsContentSink::InitializeStatics();
|
2009-06-28 15:44:22 -07:00
|
|
|
nsHtml5Module::InitializeStatics();
|
2013-11-04 03:24:33 -08:00
|
|
|
mozilla::dom::FallbackEncoding::Initialize();
|
2011-11-23 18:48:23 -08:00
|
|
|
nsLayoutUtils::Initialize();
|
2010-05-31 19:19:35 -07:00
|
|
|
nsIPresShell::InitializeStatics();
|
2015-02-24 19:20:00 -08:00
|
|
|
TouchManager::InitializeStatics();
|
2011-03-07 08:58:48 -08:00
|
|
|
nsRefreshDriver::InitializeStatics();
|
2015-03-13 13:15:09 -07:00
|
|
|
nsPrincipal::InitializeStatics();
|
2010-05-31 19:19:35 -07:00
|
|
|
|
2011-03-28 13:18:45 -07:00
|
|
|
nsCORSListenerProxy::Startup();
|
2009-05-20 16:07:18 -07:00
|
|
|
|
2009-09-18 08:13:10 -07:00
|
|
|
NS_SealStaticAtomTable();
|
|
|
|
|
2012-02-23 18:43:33 -08:00
|
|
|
nsWindowMemoryReporter::Init();
|
2011-06-29 04:01:07 -07:00
|
|
|
|
2013-02-08 12:24:47 -08:00
|
|
|
SVGElementFactory::Init();
|
2012-05-16 21:05:04 -07:00
|
|
|
nsSVGUtils::Init();
|
|
|
|
|
2013-04-25 17:53:26 -07:00
|
|
|
ProcessPriorityManager::Init();
|
2012-08-04 22:09:39 -07:00
|
|
|
|
2013-01-07 09:37:01 -08:00
|
|
|
nsPermissionManager::AppClearDataObserverInit();
|
2012-09-28 17:03:00 -07:00
|
|
|
nsCookieService::AppClearDataObserverInit();
|
2012-10-02 17:39:09 -07:00
|
|
|
nsApplicationCacheService::AppClearDataObserverInit();
|
2012-08-31 07:34:28 -07:00
|
|
|
|
2013-06-11 08:23:13 -07:00
|
|
|
HTMLVideoElement::Init();
|
|
|
|
|
2014-02-18 09:07:27 -08:00
|
|
|
#ifdef MOZ_XUL
|
|
|
|
nsMenuBarListener::InitializeStatics();
|
|
|
|
#endif
|
|
|
|
|
2013-09-20 02:11:25 -07:00
|
|
|
CacheObserver::Init();
|
|
|
|
|
2014-06-11 18:11:00 -07:00
|
|
|
CounterStyleManager::InitializeBuiltinCounterStyles();
|
|
|
|
|
2014-06-19 06:20:49 -07:00
|
|
|
CameraPreferences::Initialize();
|
|
|
|
|
2014-07-15 22:13:28 -07:00
|
|
|
IMEStateManager::Init();
|
|
|
|
|
2015-02-11 03:53:00 -08:00
|
|
|
ServiceWorkerRegistrar::Initialize();
|
|
|
|
|
2015-01-13 01:53:16 -08:00
|
|
|
#ifdef MOZ_B2G
|
|
|
|
RequestSyncWifiService::Init();
|
|
|
|
#endif
|
|
|
|
|
2015-03-04 17:48:45 -08:00
|
|
|
#ifdef DEBUG
|
|
|
|
nsStyleContext::Initialize();
|
2015-09-03 13:59:00 -07:00
|
|
|
mozilla::LayerAnimationInfo::Initialize();
|
2015-03-04 17:48:45 -08:00
|
|
|
#endif
|
|
|
|
|
2015-04-07 10:59:44 -07:00
|
|
|
MediaDecoder::InitStatics();
|
|
|
|
|
2015-04-10 08:27:57 -07:00
|
|
|
PromiseDebugging::Init();
|
|
|
|
|
2015-05-04 23:32:47 -07:00
|
|
|
layers::CompositorLRU::Init();
|
|
|
|
|
2015-08-18 04:42:12 -07:00
|
|
|
mozilla::dom::devicestorage::DeviceStorageStatics::Initialize();
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsLayoutStatics::Shutdown()
|
|
|
|
{
|
2012-02-23 18:43:33 -08:00
|
|
|
// Don't need to shutdown nsWindowMemoryReporter, that will be done by the
|
|
|
|
// memory reporter manager.
|
2011-06-29 04:01:07 -07:00
|
|
|
|
2015-02-19 17:10:44 -08:00
|
|
|
nsMessageManagerScriptExecutor::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 11:00:39 -07:00
|
|
|
nsFocusManager::Shutdown();
|
2007-07-23 17:04:36 -07:00
|
|
|
#ifdef MOZ_XUL
|
2007-07-04 08:49:38 -07:00
|
|
|
nsXULPopupManager::Shutdown();
|
2007-07-23 17:04:36 -07:00
|
|
|
#endif
|
2013-04-15 05:38:48 -07:00
|
|
|
DOMStorageObserver::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
txMozillaXSLTProcessor::Shutdown();
|
2013-04-09 08:29:44 -07:00
|
|
|
Attr::Shutdown();
|
2014-03-16 23:56:53 -07:00
|
|
|
EventListenerManager::Shutdown();
|
2014-03-07 17:20:07 -08:00
|
|
|
IMEStateManager::Shutdown();
|
2010-03-02 12:59:32 -08:00
|
|
|
nsCSSParser::Shutdown();
|
2010-04-07 10:29:10 -07:00
|
|
|
nsCSSRuleProcessor::Shutdown();
|
2007-05-09 15:02:29 -07:00
|
|
|
nsTextFrameTextRunCache::Shutdown();
|
2008-11-07 15:00:26 -08:00
|
|
|
nsHTMLDNSPrefetch::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
nsCSSRendering::Shutdown();
|
|
|
|
#ifdef DEBUG
|
|
|
|
nsFrame::DisplayReflowShutdown();
|
|
|
|
#endif
|
|
|
|
nsCellMap::Shutdown();
|
2013-09-04 04:30:57 -07:00
|
|
|
ActiveLayerTracker::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// Release all of our atoms
|
|
|
|
nsColorNames::ReleaseTable();
|
|
|
|
nsCSSProps::ReleaseTable();
|
|
|
|
nsCSSKeywords::ReleaseTable();
|
|
|
|
nsRepeatService::Shutdown();
|
|
|
|
nsStackLayout::Shutdown();
|
|
|
|
nsBox::Shutdown();
|
|
|
|
|
|
|
|
#ifdef MOZ_XUL
|
|
|
|
nsXULContentUtils::Finish();
|
|
|
|
nsXULPrototypeCache::ReleaseGlobals();
|
|
|
|
nsSprocketLayout::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2013-02-08 12:24:47 -08:00
|
|
|
SVGElementFactory::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
nsMathMLOperators::ReleaseTable();
|
|
|
|
|
2009-01-04 16:39:54 -08:00
|
|
|
nsFloatManager::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
nsImageFrame::ReleaseGlobals();
|
|
|
|
|
2012-11-15 08:36:15 -08:00
|
|
|
mozilla::css::ErrorReporter::ReleaseGlobals();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsTextFragment::Shutdown();
|
|
|
|
|
|
|
|
nsAttrValue::Shutdown();
|
|
|
|
nsContentUtils::Shutdown();
|
|
|
|
nsLayoutStylesheetCache::Shutdown();
|
2015-06-25 20:52:47 -07:00
|
|
|
RuleProcessorCache::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-08-19 16:24:29 -07:00
|
|
|
ShutdownJSEnvironment();
|
2007-03-22 10:30:00 -07:00
|
|
|
nsGlobalWindow::ShutDown();
|
|
|
|
nsDOMClassInfo::ShutDown();
|
2009-08-08 15:00:26 -07:00
|
|
|
nsListControlFrame::Shutdown();
|
2012-05-23 11:46:04 -07:00
|
|
|
nsXBLService::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
nsAutoCopyListener::Shutdown();
|
2012-06-25 19:43:30 -07:00
|
|
|
FrameLayerBuilder::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-07-16 18:32:56 -07:00
|
|
|
#ifdef MOZ_ANDROID_OMX
|
|
|
|
AndroidMediaPluginHost::Shutdown();
|
2012-05-31 17:54:23 -07:00
|
|
|
#endif
|
|
|
|
|
2013-03-13 13:10:47 -07:00
|
|
|
#ifdef MOZ_GSTREAMER
|
|
|
|
GStreamerFormatHelper::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2014-03-20 23:35:15 -07:00
|
|
|
#ifdef MOZ_FFMPEG
|
|
|
|
FFmpegRuntimeLinker::Unlink();
|
|
|
|
#endif
|
|
|
|
|
2014-08-25 06:26:09 -07:00
|
|
|
CubebUtils::ShutdownLibrary();
|
2013-09-24 19:10:24 -07:00
|
|
|
AsyncLatencyLogger::ShutdownLogger();
|
2013-08-08 15:07:42 -07:00
|
|
|
WebAudioUtils::Shutdown();
|
2008-09-30 23:17:15 -07:00
|
|
|
|
2012-12-14 16:01:34 -08:00
|
|
|
#ifdef MOZ_WIDGET_GONK
|
|
|
|
nsVolumeService::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2013-04-03 15:13:16 -07:00
|
|
|
#ifdef MOZ_WEBSPEECH
|
|
|
|
nsSynthVoiceRegistry::Shutdown();
|
|
|
|
#endif
|
|
|
|
|
2011-03-28 13:18:45 -07:00
|
|
|
nsCORSListenerProxy::Shutdown();
|
2012-12-18 00:49:58 -08:00
|
|
|
|
2010-05-31 19:19:35 -07:00
|
|
|
nsIPresShell::ReleaseStatics();
|
|
|
|
|
2015-02-24 19:20:00 -08:00
|
|
|
TouchManager::ReleaseStatics();
|
|
|
|
|
2011-07-29 04:48:04 -07:00
|
|
|
nsTreeSanitizer::ReleaseStatics();
|
|
|
|
|
2009-06-28 15:44:22 -07:00
|
|
|
nsHtml5Module::ReleaseStatics();
|
2009-06-16 02:15:46 -07:00
|
|
|
|
2013-11-04 03:24:33 -08:00
|
|
|
mozilla::dom::FallbackEncoding::Shutdown();
|
|
|
|
|
2009-09-09 18:22:03 -07:00
|
|
|
nsRegion::ShutdownStatic();
|
|
|
|
|
2014-03-17 21:48:22 -07:00
|
|
|
mozilla::EventDispatcher::Shutdown();
|
2013-08-27 02:01:37 -07:00
|
|
|
|
2013-03-28 12:41:32 -07:00
|
|
|
HTMLInputElement::DestroyUploadLastDir();
|
2011-01-13 09:45:14 -08:00
|
|
|
|
|
|
|
nsLayoutUtils::Shutdown();
|
2011-05-04 04:29:56 -07:00
|
|
|
|
|
|
|
nsHyphenationManager::Shutdown();
|
2012-03-31 09:30:13 -07:00
|
|
|
nsDOMMutationObserver::Shutdown();
|
2012-08-15 18:46:03 -07:00
|
|
|
|
2014-06-03 07:36:46 -07:00
|
|
|
DataStoreService::Shutdown();
|
|
|
|
|
2012-08-15 18:46:03 -07:00
|
|
|
ContentParent::ShutDown();
|
2012-12-11 14:15:32 -08:00
|
|
|
|
|
|
|
nsRefreshDriver::Shutdown();
|
2013-03-24 03:32:44 -07:00
|
|
|
|
2013-03-06 03:08:11 -08:00
|
|
|
DisplayItemClip::Shutdown();
|
|
|
|
|
2013-03-24 03:32:44 -07:00
|
|
|
nsDocument::XPCOMShutdown();
|
2013-09-20 02:11:25 -07:00
|
|
|
|
|
|
|
CacheObserver::Shutdown();
|
2014-06-19 06:20:49 -07:00
|
|
|
|
|
|
|
CameraPreferences::Shutdown();
|
2015-04-10 08:27:57 -07:00
|
|
|
|
|
|
|
PromiseDebugging::Shutdown();
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|