Back to index

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

Go to the source code of this file.

Classes

class  nsCommentNode

Functions

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

Function Documentation

nsresult NS_NewCommentNode ( nsIContent **  aInstancePtrResult,
nsNodeInfoManager aNodeInfoManager 
)

aNodeInfoManager must not be null.

Definition at line 83 of file nsCommentNode.cpp.

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

  *aInstancePtrResult = nsnull;

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

  NS_ADDREF(*aInstancePtrResult = instance);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: