Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsITextContent.h File Reference
#include "nsIContent.h"

Go to the source code of this file.

Classes

class  nsITextContent
 Interface for textual content. More...

Defines

#define NS_ITEXT_CONTENT_IID   {0x3c4cfec2, 0x4438, 0x48df, {0xa2, 0x12, 0x30, 0x5e, 0x5a, 0xd8, 0xbb, 0xa0}}

Functions

nsresult NS_NewTextNode (nsITextContent **aResult, nsNodeInfoManager *aNodeInfoManager)
 aNodeInfoManager must not be null.
nsresult NS_NewCommentNode (nsIContent **aResult, nsNodeInfoManager *aNodeInfoManager)
 aNodeInfoManager must not be null.

Define Documentation

#define NS_ITEXT_CONTENT_IID   {0x3c4cfec2, 0x4438, 0x48df, {0xa2, 0x12, 0x30, 0x5e, 0x5a, 0xd8, 0xbb, 0xa0}}

Definition at line 46 of file nsITextContent.h.


Function Documentation

nsresult NS_NewCommentNode ( nsIContent **  aResult,
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:

nsresult NS_NewTextNode ( nsITextContent **  aResult,
nsNodeInfoManager aNodeInfoManager 
)

aNodeInfoManager must not be null.

Definition at line 135 of file nsTextNode.cpp.

{
  NS_PRECONDITION(aNodeInfoManager, "Missing nodeInfoManager");

  *aInstancePtrResult = nsnull;

  nsCOMPtr<nsITextContent> instance = new nsTextNode(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: