Fix for bug 315826 (Scriptable XPCOM wrapper for SAX content handler). Patch by Robert Sayre <sayrer@gmail.com>, r/a=peterv, sr=sicking.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195958 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2006-05-04 13:17:45 +00:00
parent 936f911e0a
commit 5486acc9e7
22 changed files with 2824 additions and 1 deletions

View File

@@ -51,6 +51,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"
@@ -77,6 +80,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)
@@ -95,6 +102,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
}
};