Bug 315826 Scriptable XPCOM wrapper for SAX content handler

patch by sayrer@gmail.com r=peterv sr=sicking


git-svn-id: svn://10.0.0.236/trunk@194488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2006-04-17 01:13:07 +00:00
parent 9bc6e8f7c9
commit 8307560339
22 changed files with 2819 additions and 1 deletions

View File

@@ -50,6 +50,9 @@
//#include "nsTextTokenizer.h"
#include "nsElementTable.h"
#include "nsParserService.h"
#include "nsSAXAttributes.h"
#include "nsSAXLocator.h"
#include "nsSAXXMLReader.h"
#ifdef MOZ_VIEW_SOURCE
#include "nsViewSourceHTML.h"
@@ -75,6 +78,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsParserService)
NS_GENERIC_FACTORY_CONSTRUCTOR(CViewSourceHTML)
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSAXAttributes)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSAXLocator)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSAXXMLReader)
static const nsModuleComponentInfo gComponents[] = {
#if defined(NS_DEBUG) || defined(MOZ_PERF_METRICS)
@@ -91,6 +98,25 @@ static const nsModuleComponentInfo gComponents[] = {
NS_PARSERSERVICE_CID,
NS_PARSERSERVICE_CONTRACTID,
nsParserServiceConstructor
},
{
NS_SAXATTRIBUTES_CLASSNAME,
NS_SAXATTRIBUTES_CID,
NS_SAXATTRIBUTES_CONTRACTID,
nsSAXAttributesConstructor
},
{
NS_SAXLOCATOR_CLASSNAME,
NS_SAXLOCATOR_CID,
NS_SAXLOCATOR_CONTRACTID,
nsSAXLocatorConstructor
},
{
NS_SAXXMLREADER_CLASSNAME,
NS_SAXXMLREADER_CID,
NS_SAXXMLREADER_CONTRACTID,
nsSAXXMLReaderConstructor
}
};