From fb369c9dbe2796b4a52ddb51ef9e63888199d03f Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 2 Sep 1999 18:01:32 +0000 Subject: [PATCH] Setup html and xul atoms too --- layout/build/nsLayoutFactory.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/layout/build/nsLayoutFactory.cpp b/layout/build/nsLayoutFactory.cpp index be11a09c01f1..64f30ecc8135 100644 --- a/layout/build/nsLayoutFactory.cpp +++ b/layout/build/nsLayoutFactory.cpp @@ -54,6 +54,11 @@ #include "nsCSSAtoms.h" // to addref/release table #include "nsColorNames.h" // to addref/release table +#ifdef INCLUDE_XUL +#include "nsXULAtoms.h" +#endif +#include "nsLayoutAtoms.h" + class nsIDocumentLoaderFactory; static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID); @@ -137,6 +142,10 @@ nsLayoutFactory::nsLayoutFactory(const nsCID &aClass) nsCSSKeywords::AddRefTable(); nsCSSProps::AddRefTable(); nsColorNames::AddRefTable(); + nsHTMLAtoms::AddRefAtoms(); +#ifdef INCLUDE_XUL + nsXULAtoms::AddRefAtoms(); +#endif } nsLayoutFactory::~nsLayoutFactory() @@ -146,6 +155,10 @@ nsLayoutFactory::~nsLayoutFactory() nsCSSProps::ReleaseTable(); nsCSSKeywords::ReleaseTable(); nsCSSAtoms::ReleaseAtoms(); + nsHTMLAtoms::ReleaseAtoms(); +#ifdef INCLUDE_XUL + nsXULAtoms::ReleaseAtoms(); +#endif } nsresult