From 5b03148478e7c2ee3a60e273a0576546f7210eda Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Tue, 24 Aug 1999 22:15:45 +0000 Subject: [PATCH] Checking in patch from Johnny Stenback (jst@citec.fi) that exposes notation and entity creation DOM interfaces. --- dom/public/coreDom/MANIFEST | 1 + dom/public/coreDom/Makefile.in | 1 + dom/public/coreDom/makefile.win | 1 + dom/public/nsIDOMScriptObjectFactory.h | 11 ++++++++- dom/src/build/nsDOMFactory.cpp | 32 ++++++++++++++++++++++++++ dom/src/coreDOM/Makefile.in | 1 + dom/src/coreDOM/makefile.win | 2 ++ 7 files changed, 48 insertions(+), 1 deletion(-) diff --git a/dom/public/coreDom/MANIFEST b/dom/public/coreDom/MANIFEST index 189f924f9a3b..e8683459c151 100644 --- a/dom/public/coreDom/MANIFEST +++ b/dom/public/coreDom/MANIFEST @@ -26,6 +26,7 @@ nsIDOMDocumentType.h nsIDOMDocumentFragment.h nsIDOMElement.h nsIDOMEntity.h +nsIDOMNotation.h nsIDOMEntityReference.h nsIDOMNode.h nsIDOMNamedNodeMap.h diff --git a/dom/public/coreDom/Makefile.in b/dom/public/coreDom/Makefile.in index 17d01f952e66..fadcbc15a297 100644 --- a/dom/public/coreDom/Makefile.in +++ b/dom/public/coreDom/Makefile.in @@ -35,6 +35,7 @@ EXPORTS = \ nsIDOMDocumentFragment.h \ nsIDOMElement.h \ nsIDOMEntity.h \ + nsIDOMNotation.h \ nsIDOMEntityReference.h \ nsIDOMNode.h \ nsIDOMNamedNodeMap.h \ diff --git a/dom/public/coreDom/makefile.win b/dom/public/coreDom/makefile.win index a724feb47eb0..fec08460b7bc 100644 --- a/dom/public/coreDom/makefile.win +++ b/dom/public/coreDom/makefile.win @@ -30,6 +30,7 @@ EXPORTS = \ nsIDOMDocumentFragment.h \ nsIDOMElement.h \ nsIDOMEntity.h \ + nsIDOMNotation.h \ nsIDOMEntityReference.h \ nsIDOMNode.h \ nsIDOMNamedNodeMap.h \ diff --git a/dom/public/nsIDOMScriptObjectFactory.h b/dom/public/nsIDOMScriptObjectFactory.h index 786a8769fdd0..c4483038a76b 100644 --- a/dom/public/nsIDOMScriptObjectFactory.h +++ b/dom/public/nsIDOMScriptObjectFactory.h @@ -100,7 +100,16 @@ public: nsISupports *aPI, nsISupports *aParent, void** aReturn)=0; - + + NS_IMETHOD NewScriptEntity(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn)=0; + + NS_IMETHOD NewScriptNotation(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn)=0; }; #endif /* nsIDOMScriptObjectFactory_h__ */ diff --git a/dom/src/build/nsDOMFactory.cpp b/dom/src/build/nsDOMFactory.cpp index 1972714561f9..6d201bc3583a 100644 --- a/dom/src/build/nsDOMFactory.cpp +++ b/dom/src/build/nsDOMFactory.cpp @@ -44,6 +44,8 @@ #include "nsIDOMNode.h" #include "nsIDOMNodeList.h" #include "nsIDOMProcessingInstruction.h" +#include "nsIDOMEntity.h" +#include "nsIDOMNotation.h" #include "nsIDOMText.h" #include "nsIDOMHTMLAnchorElement.h" #include "nsIDOMHTMLAppletElement.h" @@ -274,6 +276,16 @@ public: nsISupports *aParent, void** aReturn); + NS_IMETHOD NewScriptEntity(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn); + + NS_IMETHOD NewScriptNotation(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn); + }; nsDOMScriptObjectFactory::nsDOMScriptObjectFactory() @@ -550,6 +562,26 @@ nsDOMScriptObjectFactory::NewScriptProcessingInstruction(nsIScriptContext *aCont } +NS_IMETHODIMP +nsDOMScriptObjectFactory::NewScriptEntity(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn) +{ + return NS_NewScriptEntity(aContext, aPI, aParent, aReturn); +} + + +NS_IMETHODIMP +nsDOMScriptObjectFactory::NewScriptNotation(nsIScriptContext *aContext, + nsISupports *aPI, + nsISupports *aParent, + void** aReturn) +{ + return NS_NewScriptNotation(aContext, aPI, aParent, aReturn); +} + + ////////////////////////////////////////////////////////////////////// diff --git a/dom/src/coreDOM/Makefile.in b/dom/src/coreDOM/Makefile.in index 784cf4131d94..5a1aa20548b3 100644 --- a/dom/src/coreDOM/Makefile.in +++ b/dom/src/coreDOM/Makefile.in @@ -39,6 +39,7 @@ CPPSRCS = \ nsJSNamedNodeMap.cpp \ nsJSNode.cpp \ nsJSNodeList.cpp \ + nsJSNotation.cpp \ nsJSProcessingInstruction.cpp \ nsJSText.cpp \ nsJSStyleSheet.cpp \ diff --git a/dom/src/coreDOM/makefile.win b/dom/src/coreDOM/makefile.win index 151076b9b30b..3866edaf2e25 100644 --- a/dom/src/coreDOM/makefile.win +++ b/dom/src/coreDOM/makefile.win @@ -38,6 +38,7 @@ CPPSRCS = \ nsJSNamedNodeMap.cpp \ nsJSNode.cpp \ nsJSNodeList.cpp \ + nsJSNotation.cpp \ nsJSProcessingInstruction.cpp \ nsJSText.cpp \ nsJSStyleSheet.cpp \ @@ -59,6 +60,7 @@ CPP_OBJS= \ .\$(OBJDIR)\nsJSNamedNodeMap.obj \ .\$(OBJDIR)\nsJSNode.obj \ .\$(OBJDIR)\nsJSNodeList.obj \ + .\$(OBJDIR)\nsJSNotation.obj \ .\$(OBJDIR)\nsJSProcessingInstruction.obj \ .\$(OBJDIR)\nsJSText.obj \ .\$(OBJDIR)\nsJSStyleSheet.obj \