Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXMLCDATASection.cpp File Reference
#include "nsIDOMCDATASection.h"
#include "nsGenericDOMDataNode.h"
#include "nsLayoutAtoms.h"
#include "nsIDocument.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Classes

class  nsXMLCDATASection

Functions

nsresult NS_NewXMLCDATASection (nsIContent **aInstancePtrResult, nsNodeInfoManager *aNodeInfoManager)
 aNodeInfoManager must not be null.

Function Documentation

nsresult NS_NewXMLCDATASection ( nsIContent **  aInstancePtrResult,
nsNodeInfoManager aNodeInfoManager 
)

aNodeInfoManager must not be null.

Definition at line 82 of file nsXMLCDATASection.cpp.

{
  NS_PRECONDITION(aNodeInfoManager, "Missing nodeinfo manager");

  *aInstancePtrResult = nsnull;

  nsXMLCDATASection *instance = new nsXMLCDATASection(aNodeInfoManager);
  if (!instance) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = instance);

  return NS_OK;
}

Here is the call graph for this function: