Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsLayoutModule.cpp File Reference
#include "nsLayoutStatics.h"
#include "nsContentCID.h"
#include "nsContentHTTPStartup.h"
#include "nsContentDLF.h"
#include "nsContentPolicyUtils.h"
#include "nsDataDocumentContentPolicy.h"
#include "nsDOMCID.h"
#include "nsCSSOMFactory.h"
#include "nsInspectorCSSUtils.h"
#include "nsHTMLContentSerializer.h"
#include "nsHTMLParts.h"
#include "nsGenericHTMLElement.h"
#include "nsICSSLoader.h"
#include "nsICSSParser.h"
#include "nsICSSStyleSheet.h"
#include "nsICategoryManager.h"
#include "nsIComponentManager.h"
#include "nsIComputedDOMStyle.h"
#include "nsIContentIterator.h"
#include "nsIContentSerializer.h"
#include "nsIController.h"
#include "nsIControllers.h"
#include "nsIDOMDOMImplementation.h"
#include "nsIDOMEventGroup.h"
#include "nsIDOMRange.h"
#include "nsIDocument.h"
#include "nsIDocumentEncoder.h"
#include "nsIDocumentViewer.h"
#include "nsIEventListenerManager.h"
#include "nsIFactory.h"
#include "nsIFrameSelection.h"
#include "nsIFrameUtil.h"
#include "nsIGenericFactory.h"
#include "nsIHTMLCSSStyleSheet.h"
#include "nsIFragmentContentSink.h"
#include "nsHTMLStyleSheet.h"
#include "nsIHTMLToTextSink.h"
#include "nsILayoutDebugger.h"
#include "nsINameSpaceManager.h"
#include "nsINodeInfo.h"
#include "nsIObserver.h"
#include "nsIObserverService.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsIPrivateDOMImplementation.h"
#include "nsIRangeUtils.h"
#include "nsIScriptNameSpaceManager.h"
#include "nsISelection.h"
#include "nsIXBLService.h"
#include "nsICaret.h"
#include "nsPlainTextSerializer.h"
#include "mozSanitizingSerializer.h"
#include "nsXMLContentSerializer.h"
#include "nsRuleNode.h"
#include "nsWyciwygProtocolHandler.h"
#include "nsContentAreaDragDrop.h"
#include "nsContentList.h"
#include "nsISyncLoadDOMService.h"
#include "nsBox.h"
#include "nsIFrameTraversal.h"
#include "nsISelectionImageService.h"
#include "nsLayoutCID.h"
#include "nsStyleSheetService.h"
#include "nsNoDataProtocolContentPolicy.h"
#include "nsDOMParser.h"
#include "nsDOMSerializer.h"
#include "nsXMLHttpRequest.h"
#include "nsViewsCID.h"
#include "nsViewManager.h"
#include "nsContentCreatorFunctions.h"
#include "nsDOMException.h"
#include "nsGlobalWindowCommands.h"
#include "nsIControllerCommandTable.h"
#include "nsJSProtocolHandler.h"
#include "nsScriptNameSpaceManager.h"
#include "nsIControllerContext.h"
#include "nsDOMScriptObjectFactory.h"
#include "nsDOMStorage.h"
#include "nsHTMLCanvasFrame.h"
#include "inDOMView.h"
#include "inDeepTreeWalker.h"
#include "inFlasher.h"
#include "inCSSValueSearch.h"
#include "inFileSearch.h"
#include "inDOMUtils.h"

Go to the source code of this file.

Classes

class  LayoutShutdownObserver

Defines

#define PRODUCT_NAME   "Gecko"
#define NS_HTMLIMGELEMENT_CONTRACTID   "@mozilla.org/content/element/html;1?name=img"
#define NS_HTMLOPTIONELEMENT_CONTRACTID   "@mozilla.org/content/element/html;1?name=option"
#define NS_PLUGINDOCLOADERFACTORY_CID   { 0x0ddf4df8, 0x4dbb, 0x4133, { 0x8b, 0x79, 0x9a, 0xfb, 0x96, 0x65, 0x14, 0xf5 } }
#define NS_WINDOWCOMMANDTABLE_CID
#define MAKE_CTOR(ctor_, iface_, func_)
#define NS_GENERIC_FACTORY_CONSTRUCTOR_NOREFS(_InstanceClass)

Functions

static NS_DEFINE_CID (kWindowCommandTableCID, NS_WINDOWCOMMANDTABLE_CID)
 PR_STATIC_CALLBACK (nsresult) Initialize(nsIModule *aSelf)
static void Shutdown ()
nsresult PR_CALLBACK Initialize (nsIModule *aSelf)
nsresult NS_CreateFrameTraversal (nsIFrameTraversal **aResult)
nsresult NS_NewSelectionImageService (nsISelectionImageService **aResult)
nsresult NS_NewSelection (nsIFrameSelection **aResult)
nsresult NS_NewDomSelection (nsISelection **aResult)
nsresult NS_NewDocumentViewer (nsIDocumentViewer **aResult)
nsresult NS_NewRange (nsIDOMRange **aResult)
nsresult NS_NewRangeUtils (nsIRangeUtils **aResult)
nsresult NS_NewContentIterator (nsIContentIterator **aResult)
nsresult NS_NewPreContentIterator (nsIContentIterator **aResult)
nsresult NS_NewGenRegularIterator (nsIContentIterator **aResult)
nsresult NS_NewContentSubtreeIterator (nsIContentIterator **aResult)
nsresult NS_NewGenSubtreeIterator (nsIContentIterator **aInstancePtrResult)
nsresult NS_NewContentDocumentLoaderFactory (nsIDocumentLoaderFactory **aResult)
nsresult NS_NewHTMLCopyTextEncoder (nsIDocumentEncoder **aResult)
nsresult NS_NewTextEncoder (nsIDocumentEncoder **aResult)
nsresult NS_NewXBLService (nsIXBLService **aResult)
nsresult NS_NewContentPolicy (nsIContentPolicy **aResult)
nsresult NS_NewSyncLoadDOMService (nsISyncLoadDOMService **aResult)
nsresult NS_NewDOMEventGroup (nsIDOMEventGroup **aResult)
NS_IMETHODIMP NS_NewXULControllers (nsISupports *aOuter, REFNSIID aIID, void **aResult)
static NS_IMETHODIMP CreateHTMLImgElement (nsISupports *aOuter, REFNSIID aIID, void **aResult)
static NS_IMETHODIMP RegisterHTMLImgElement (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const char *aComponentType, const nsModuleComponentInfo *aInfo)
static NS_IMETHODIMP UnregisterHTMLImgElement (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const nsModuleComponentInfo *aInfo)
static NS_IMETHODIMP CreateHTMLOptionElement (nsISupports *aOuter, REFNSIID aIID, void **aResult)
static NS_IMETHODIMP RegisterHTMLOptionElement (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const char *aComponentType, const nsModuleComponentInfo *aInfo)
static NS_IMETHODIMP UnregisterHTMLOptionElement (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const nsModuleComponentInfo *aInfo)
static NS_METHOD RegisterDataDocumentContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const char *aComponentType, const nsModuleComponentInfo *aInfo)
static NS_METHOD UnregisterDataDocumentContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)
static NS_METHOD RegisterNoDataProtocolContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const char *aComponentType, const nsModuleComponentInfo *aInfo)
static NS_METHOD UnregisterNoDataProtocolContentPolicy (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)
static NS_METHOD CreateWindowCommandTableConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)
static NS_METHOD CreateWindowControllerWithSingletonCommandTable (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

static PRBool gInitialized = PR_FALSE
static const nsModuleComponentInfo gComponents []

Define Documentation

#define MAKE_CTOR (   ctor_,
  iface_,
  func_ 
)
Value:
static NS_IMETHODIMP                                      \
ctor_(nsISupports* aOuter, REFNSIID aIID, void** aResult) \
{                                                         \
  *aResult = nsnull;                                      \
  if (aOuter)                                             \
    return NS_ERROR_NO_AGGREGATION;                       \
  iface_* inst;                                           \
  nsresult rv = func_(&inst);                             \
  if (NS_SUCCEEDED(rv)) {                                 \
    rv = inst->QueryInterface(aIID, aResult);             \
    NS_RELEASE(inst);                                     \
  }                                                       \
  return rv;                                              \
}

Definition at line 345 of file nsLayoutModule.cpp.

Value:
static NS_IMETHODIMP                                                          \
_InstanceClass##Constructor(nsISupports *aOuter, REFNSIID aIID,               \
                            void **aResult)                                   \
{                                                                             \
    nsresult rv;                                                              \
                                                                              \
    _InstanceClass * inst;                                                    \
                                                                              \
    *aResult = NULL;                                                          \
    if (NULL != aOuter) {                                                     \
        rv = NS_ERROR_NO_AGGREGATION;                                         \
        return rv;                                                            \
    }                                                                         \
                                                                              \
    NS_NEWXPCOM(inst, _InstanceClass);                                        \
    if (NULL == inst) {                                                       \
        rv = NS_ERROR_OUT_OF_MEMORY;                                          \
        return rv;                                                            \
    }                                                                         \
    rv = inst->QueryInterface(aIID, aResult);                                 \
                                                                              \
    return rv;                                                                \
}                                                                             \

Definition at line 478 of file nsLayoutModule.cpp.

#define NS_HTMLIMGELEMENT_CONTRACTID   "@mozilla.org/content/element/html;1?name=img"

Definition at line 142 of file nsLayoutModule.cpp.

#define NS_HTMLOPTIONELEMENT_CONTRACTID   "@mozilla.org/content/element/html;1?name=option"

Definition at line 145 of file nsLayoutModule.cpp.

#define NS_PLUGINDOCLOADERFACTORY_CID   { 0x0ddf4df8, 0x4dbb, 0x4133, { 0x8b, 0x79, 0x9a, 0xfb, 0x96, 0x65, 0x14, 0xf5 } }

Definition at line 149 of file nsLayoutModule.cpp.

Value:
{ /* 0DE2FBFA-6B7F-11D7-BBBA-0003938A9D96 */        \
  0x0DE2FBFA, 0x6B7F, 0x11D7, {0xBB, 0xBA, 0x00, 0x03, 0x93, 0x8A, 0x9D, 0x96} }

Definition at line 152 of file nsLayoutModule.cpp.

#define PRODUCT_NAME   "Gecko"

Definition at line 140 of file nsLayoutModule.cpp.


Function Documentation

static NS_IMETHODIMP CreateHTMLImgElement ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 506 of file nsLayoutModule.cpp.

{
  *aResult = nsnull;
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;
  // Note! NS_NewHTMLImageElement is special cased to handle a null nodeinfo
  nsIContent* inst = NS_NewHTMLImageElement(nsnull);
  nsresult rv = NS_ERROR_OUT_OF_MEMORY;
  if (inst) {
    NS_ADDREF(inst);
    rv = inst->QueryInterface(aIID, aResult);
    NS_RELEASE(inst);
  }
  return rv;
}

Here is the call graph for this function:

static NS_IMETHODIMP CreateHTMLOptionElement ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 557 of file nsLayoutModule.cpp.

{
  *aResult = nsnull;
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;
  // Note! NS_NewHTMLOptionElement is special cased to handle a null nodeinfo
  nsIContent* inst = NS_NewHTMLOptionElement(nsnull);
  nsresult rv = NS_ERROR_OUT_OF_MEMORY;
  if (inst) {
    NS_ADDREF(inst);
    rv = inst->QueryInterface(aIID, aResult);
    NS_RELEASE(inst);
  }
  return rv;
}

Here is the call graph for this function:

static NS_METHOD CreateWindowCommandTableConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 684 of file nsLayoutModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsIControllerCommandTable> commandTable =
      do_CreateInstance(NS_CONTROLLERCOMMANDTABLE_CONTRACTID, &rv);
  if (NS_FAILED(rv)) return rv;

  rv = nsWindowCommandRegistration::RegisterWindowCommands(commandTable);
  if (NS_FAILED(rv)) return rv;

  return commandTable->QueryInterface(aIID, aResult);
}

Here is the call graph for this function:

static NS_METHOD CreateWindowControllerWithSingletonCommandTable ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 699 of file nsLayoutModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsIController> controller =
       do_CreateInstance("@mozilla.org/embedcomp/base-command-controller;1", &rv);

 if (NS_FAILED(rv)) return rv;

  nsCOMPtr<nsIControllerCommandTable> windowCommandTable = do_GetService(kWindowCommandTableCID, &rv);
  if (NS_FAILED(rv)) return rv;

  // this is a singleton; make it immutable
  windowCommandTable->MakeImmutable();

  nsCOMPtr<nsIControllerContext> controllerContext = do_QueryInterface(controller, &rv);
  if (NS_FAILED(rv)) return rv;

  controllerContext->Init(windowCommandTable);
  if (NS_FAILED(rv)) return rv;

  return controller->QueryInterface(aIID, aResult);
}

Here is the call graph for this function:

Definition at line 237 of file nsLayoutModule.cpp.

{
  NS_PRECONDITION(!gInitialized, "module already initialized");
  if (gInitialized) {
    return NS_OK;
  }

  gInitialized = PR_TRUE;

  nsresult rv = nsLayoutStatics::Initialize();
  if (NS_FAILED(rv)) {
    Shutdown();
    return rv;
  }

  // Add our shutdown observer.
  nsCOMPtr<nsIObserverService> observerService =
    do_GetService("@mozilla.org/observer-service;1");

  if (observerService) {
    LayoutShutdownObserver* observer =
      new LayoutShutdownObserver();

    if (!observer) {
      Shutdown();

      return NS_ERROR_OUT_OF_MEMORY;
    }

    observerService->AddObserver(observer, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_FALSE);
  } else {
    NS_WARNING("Could not get an observer service.  We will leak on shutdown.");
  }

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 168 of file nsFrameTraversal.cpp.

{
  NS_ENSURE_ARG_POINTER(aResult);
  *aResult = nsnull;

  nsCOMPtr<nsIFrameTraversal> t(new nsFrameTraversal());
  if (!t)
    return NS_ERROR_OUT_OF_MEMORY;

  *aResult = t;
  NS_ADDREF(*aResult);

  return NS_OK;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kWindowCommandTableCID  ,
NS_WINDOWCOMMANDTABLE_CID   
) [static]

Definition at line 134 of file nsContentDLF.cpp.

{
  NS_PRECONDITION(aResult, "null OUT ptr");
  if (!aResult) {
    return NS_ERROR_NULL_POINTER;
  }
  nsContentDLF* it = new nsContentDLF();
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(it, aResult);
}

Here is the call graph for this function:

Definition at line 299 of file nsContentIterator.cpp.

{
  nsContentIterator * iter = new nsContentIterator();
  if (!iter) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = iter);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 60 of file nsContentPolicy.cpp.

{
  *aResult = new nsContentPolicy;
  if (!*aResult)
      return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 1269 of file nsContentIterator.cpp.

{
  nsContentIterator * iter = new nsContentSubtreeIterator();
  if (!iter) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = iter);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 465 of file nsDocumentViewer.cpp.

{
  *aResult = new DocumentViewerImpl(nsnull);
  if (!*aResult) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aResult);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 66 of file nsDOMEventGroup.cpp.

{
  *aInstancePtrResult = new nsDOMEventGroup;
  if (!*aInstancePtrResult)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aInstancePtrResult);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 743 of file nsSelection.cpp.

{
  nsTypedSelection *rlist = new nsTypedSelection;
  if (!rlist)
    return NS_ERROR_OUT_OF_MEMORY;
  *aDomSelection = (nsISelection *)rlist;
  NS_ADDREF(rlist);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 188 of file nsGeneratedIterator.cpp.

{
  nsGeneratedContentIterator * iter = new nsGeneratedContentIterator();
  if (!iter) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = iter);

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 844 of file nsGeneratedIterator.cpp.

{
  nsGeneratedSubtreeIterator * iter = new nsGeneratedSubtreeIterator();
  if (!iter) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = iter);

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 1763 of file nsDocumentEncoder.cpp.

{
  *aResult = new nsHTMLCopyEncoder;
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;
 NS_ADDREF(*aResult);
 return NS_OK;
}

Here is the call graph for this function:

Definition at line 312 of file nsContentIterator.cpp.

{
  nsContentIterator * iter = new nsPreContentIterator();
  if (!iter) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = iter);

  return NS_OK;
}

Here is the call graph for this function:

nsresult NS_NewRange ( nsIDOMRange **  aResult)

Definition at line 366 of file nsRange.cpp.

{
  NS_ENSURE_ARG_POINTER(aResult);

  nsRange * range = new nsRange();
  if (!range) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(range, aResult);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 300 of file nsRange.cpp.

{
  NS_ENSURE_ARG_POINTER(aResult);

  nsRangeUtils* rangeUtil = new nsRangeUtils();
  if (!rangeUtil) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(rangeUtil, aResult);
}

Here is the call graph for this function:

Definition at line 731 of file nsSelection.cpp.

{
  nsSelection *rlist = new nsSelection;
  if (!rlist)
    return NS_ERROR_OUT_OF_MEMORY;
  *aFrameSelection = (nsIFrameSelection *)rlist;
  NS_ADDREF(rlist);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 403 of file nsFrame.cpp.

{
  *aResult = new SelectionImageService;
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 575 of file nsSyncLoadService.cpp.

{
    *aResult = new nsSyncLoadService();
    NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);
    NS_ADDREF(*aResult);
    return NS_OK;
}

Here is the call graph for this function:

Definition at line 1004 of file nsDocumentEncoder.cpp.

{
  *aResult = new nsDocumentEncoder;
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;
 NS_ADDREF(*aResult);
 return NS_OK;
}

Here is the call graph for this function:

Definition at line 1246 of file nsXBLService.cpp.

{
  nsXBLService* result = new nsXBLService;
  if (! result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult = result);

  // Register the first (and only) nsXBLService as a memory pressure observer
  // so it can flush the LRU list in low-memory situations.
  nsCOMPtr<nsIObserverService> os = do_GetService("@mozilla.org/observer-service;1");
  if (os)
    os->AddObserver(result, "memory-pressure", PR_TRUE);

  return NS_OK;
}

Here is the call graph for this function:

NS_IMETHODIMP NS_NewXULControllers ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
)

Definition at line 84 of file nsXULControllers.cpp.

{
  NS_PRECONDITION(aOuter == nsnull, "no aggregation");
  if (aOuter)
    return NS_ERROR_NO_AGGREGATION;

  nsXULControllers* controllers = new nsXULControllers();
  if (! controllers)
    return NS_ERROR_OUT_OF_MEMORY;
  
  nsresult rv;
  NS_ADDREF(controllers);
  rv = controllers->QueryInterface(aIID, aResult);
  NS_RELEASE(controllers);
  return rv;
}

Here is the call graph for this function:

Definition at line 602 of file nsNetModule.cpp.

{
    gNetStrings = new nsNetStrings();
    return gNetStrings ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
static NS_METHOD RegisterDataDocumentContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const char *  aComponentType,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 608 of file nsLayoutModule.cpp.

Here is the call graph for this function:

static NS_IMETHODIMP RegisterHTMLImgElement ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const char *  aComponentType,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 523 of file nsLayoutModule.cpp.

Here is the call graph for this function:

static NS_IMETHODIMP RegisterHTMLOptionElement ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const char *  aComponentType,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 574 of file nsLayoutModule.cpp.

Here is the call graph for this function:

static NS_METHOD RegisterNoDataProtocolContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const char *  aComponentType,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 646 of file nsLayoutModule.cpp.

Here is the call graph for this function:

void Shutdown ( void  ) [static]

Definition at line 278 of file nsLayoutModule.cpp.

{
  NS_PRECONDITION(gInitialized, "module not initialized");
  if (!gInitialized)
    return;

  gInitialized = PR_FALSE;

  nsLayoutStatics::Release();
}

Here is the call graph for this function:

static NS_METHOD UnregisterDataDocumentContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 628 of file nsLayoutModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> catman =
    do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv);
  if (NS_FAILED(rv)) {
    return rv;
  }
  
  return catman->DeleteCategoryEntry("content-policy",
                                     NS_DATADOCUMENTCONTENTPOLICY_CONTRACTID,
                                     PR_TRUE);
}

Here is the call graph for this function:

static NS_IMETHODIMP UnregisterHTMLImgElement ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 547 of file nsLayoutModule.cpp.

{
  // XXX remove category entry
  return NS_OK;
}
static NS_IMETHODIMP UnregisterHTMLOptionElement ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 598 of file nsLayoutModule.cpp.

{
  // XXX remove category entry
  return NS_OK;
}
static NS_METHOD UnregisterNoDataProtocolContentPolicy ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 666 of file nsLayoutModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> catman =
    do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv);
  if (NS_FAILED(rv)) {
    return rv;
  }
  
  return catman->DeleteCategoryEntry("content-policy",
                                     NS_NODATAPROTOCOLCONTENTPOLICY_CONTRACTID,
                                     PR_TRUE);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 727 of file nsLayoutModule.cpp.

Definition at line 231 of file nsLayoutModule.cpp.