Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsHTMLFragmentContentSink.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIFragmentContentSink.h"
#include "nsIHTMLContentSink.h"
#include "nsIParser.h"
#include "nsIParserService.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLTokens.h"
#include "nsGenericHTMLElement.h"
#include "nsIDOMText.h"
#include "nsIDOMComment.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsIDOMDocumentFragment.h"
#include "nsVoidArray.h"
#include "nsITextContent.h"
#include "nsINameSpaceManager.h"
#include "nsIDocument.h"
#include "nsINodeInfo.h"
#include "prmem.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsContentUtils.h"
#include "nsEscape.h"
#include "nsNodeInfoManager.h"
#include "nsContentCreatorFunctions.h"
#include "nsIScriptSecurityManager.h"
#include "nsContentSink.h"
#include "nsTHashtable.h"
#include "nsNetUtil.h"

Go to the source code of this file.

Classes

class  nsHTMLFragmentContentSink
class  nsHTMLParanoidFragmentSink

Defines

#define NS_ACCUMULATION_BUFFER_SIZE   4096

Functions

static nsresult NewHTMLFragmentContentSinkHelper (PRBool aAllContent, nsIFragmentContentSink **aResult)
nsresult NS_NewHTMLFragmentContentSink2 (nsIFragmentContentSink **aResult)
nsresult NS_NewHTMLFragmentContentSink (nsIFragmentContentSink **aResult)
nsresult NS_NewHTMLParanoidFragmentSink (nsIFragmentContentSink **aResult)
void NS_HTMLParanoidFragmentSinkShutdown ()
 NS_IMPL_ISUPPORTS_INHERITED0 (nsHTMLParanoidFragmentSink, nsHTMLFragmentContentSink) nsresult nsHTMLParanoidFragmentSink

Define Documentation

Definition at line 780 of file nsHTMLFragmentContentSink.cpp.


Function Documentation

static nsresult NewHTMLFragmentContentSinkHelper ( PRBool  aAllContent,
nsIFragmentContentSink **  aResult 
) [static]

Definition at line 174 of file nsHTMLFragmentContentSink.cpp.

{
  NS_PRECONDITION(aResult, "Null out ptr");
  if (nsnull == aResult) {
    return NS_ERROR_NULL_POINTER;
  }

  nsHTMLFragmentContentSink* it = new nsHTMLFragmentContentSink(aAllContent);
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  
  NS_ADDREF(*aResult = it);
  
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1047 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1052 of file nsHTMLFragmentContentSink.cpp.

{
  nsIParserService* parserService = nsContentUtils::GetParserServiceWeakRef();
  if (!parserService) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_IF_ADDREF(*aResult = parserService->HTMLIdToAtomTag(aTag));
  
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 198 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 192 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

Definition at line 1033 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function: