Forgot to commit the layout build directory. r=waterson

This commit is contained in:
hyatt%netscape.com 2000-01-19 04:11:23 +00:00
Родитель 762fd5b61c
Коммит 5c29a005bc
2 изменённых файлов: 13 добавлений и 8 удалений

Просмотреть файл

@ -48,8 +48,7 @@
#include "nsIScriptExternalNameSet.h"
#include "nsIEventListenerManager.h"
#include "nsILayoutDebugger.h"
#include "nsIHTMLElementFactory.h"
#include "nsIXMLElementFactory.h"
#include "nsIElementFactory.h"
#include "nsIDocumentEncoder.h"
#include "nsCOMPtr.h"
#include "nsIFrameSelection.h"
@ -101,7 +100,9 @@ extern nsresult NS_NewLayoutDocumentLoaderFactory(nsIDocumentLoaderFactory** aRe
extern nsresult NS_NewFrameUtil(nsIFrameUtil** aResult);
extern nsresult NS_NewLayoutDebugger(nsILayoutDebugger** aResult);
#endif
extern nsresult NS_NewHTMLElementFactory(nsIHTMLElementFactory** aResult);
extern nsresult NS_NewHTMLElementFactory(nsIElementFactory** aResult);
extern nsresult NS_NewXMLElementFactory(nsIElementFactory** aResult);
extern nsresult NS_NewHTMLEncoder(nsIDocumentEncoder** aResult);
extern nsresult NS_NewTextEncoder(nsIDocumentEncoder** aResult);
@ -181,7 +182,7 @@ nsLayoutFactory::CreateInstance(nsISupports *aOuter,
}
}
#if 1
// XXX replace these with nsIHTMLElementFactory calls
// XXX replace these with nsIElementFactory calls
else if (mClassID.Equals(kHTMLImageElementCID)) {
res = NS_NewHTMLImageElement((nsIHTMLContent**)&inst, nsHTMLAtoms::img);
if (NS_FAILED(res)) {
@ -313,14 +314,14 @@ nsLayoutFactory::CreateInstance(nsISupports *aOuter,
}
#endif
else if (mClassID.Equals(kHTMLElementFactoryCID)) {
res = NS_NewHTMLElementFactory((nsIHTMLElementFactory**) &inst);
res = NS_NewHTMLElementFactory((nsIElementFactory**) &inst);
if (NS_FAILED(res)) {
LOG_NEW_FAILURE("NS_NewHTMLElementFactory", res);
return res;
}
}
else if (mClassID.Equals(kXMLElementFactoryCID)) {
res = NS_NewXMLElementFactory((nsIXMLElementFactory**) &inst);
res = NS_NewXMLElementFactory((nsIElementFactory**) &inst);
if (NS_FAILED(res)) {
LOG_NEW_FAILURE("NS_NewXMLElementFactory", res);
return res;

Просмотреть файл

@ -47,6 +47,8 @@
#include "nsIScriptNameSpaceManager.h"
#include "nsIScriptExternalNameSet.h"
#include "nsIElementFactory.h"
#include "nsIDocumentEncoder.h"
// XXX
@ -298,6 +300,8 @@ struct Components {
const char* mProgID;
};
// The HTML namespace.
// The list of components we register
static Components gComponents[] = {
{ "Namespace manager", NS_NAMESPACEMANAGER_CID, nsnull, },
@ -316,10 +320,10 @@ static Components gComponents[] = {
{ "CSS parser", NS_CSSPARSER_CID, nsnull, },
{ "CSS loader", NS_CSS_LOADER_CID, nsnull, },
{ "HTML element factory", NS_HTML_ELEMENT_FACTORY_CID, nsnull, },
{ "HTML element factory", NS_HTML_ELEMENT_FACTORY_CID, NS_HTML_ELEMENT_FACTORY_PROGID, },
{ "Text element", NS_TEXTNODE_CID, nsnull, },
{ "XML element factory", NS_XML_ELEMENT_FACTORY_CID, nsnull, },
{ "XML element factory", NS_XML_ELEMENT_FACTORY_CID, NS_XML_ELEMENT_FACTORY_PROGID, },
{ "Selection", NS_SELECTION_CID, nsnull, },
{ "Frame selection", NS_FRAMESELECTION_CID, nsnull, },