Initial checkin of SVG prototype code for Dean Jackson (ifdef'ed)

This commit is contained in:
rods%netscape.com 2000-04-01 22:31:45 +00:00
parent 52e40e9c6d
commit 59adfb766c
7 changed files with 45 additions and 0 deletions

View File

@ -32,6 +32,10 @@ ifdef MOZ_MATHML
DIRS += mathml
endif
ifdef MOZ_SVG
DIRS += svg
endif
DIRS += events build
ifdef ENABLE_TESTS

View File

@ -74,6 +74,13 @@ SHARED_LIBRARY_LIBS += \
$(NSNULL)
endif
ifdef MOZ_SVG
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/libraptorsvgcontent_s.a \
$(DIST)/lib/libraptorsvgbase_s.a \
$(NSNULL)
endif
EXTRA_DSO_LDOPTS = \
$(MKSHLIB_FORCE_ALL) \
$(SHARED_LIBRARY_LIBS) \

View File

@ -54,6 +54,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\dom \
-I..\xul\content\src \
!ifdef MOZ_MATHML
-I..\mathml\content\src \
!endif
!ifdef MOZ_SVG
-I..\svg\content\src \
!endif
-I$(PUBLIC)\rdf
@ -77,6 +80,10 @@ LLIBS= \
!ifdef MOZ_MATHML
$(DIST)\lib\raptormathmlbase_s.lib \
$(DIST)\lib\raptormathmlcontent_s.lib \
!endif
!ifdef MOZ_SVG
$(DIST)\lib\raptorsvgbase_s.lib \
$(DIST)\lib\raptorsvgcontent_s.lib \
!endif
$(DIST)\lib\raptorevents_s.lib \
$(DIST)\lib\xpcom.lib \

View File

@ -54,6 +54,11 @@
#include "nsIDocumentEncoder.h"
// SVG
#ifdef MOZ_SVG
#include "nsSVGAtoms.h"
#endif
// XXX
#include "nsIServiceManager.h"
@ -202,6 +207,11 @@ nsLayoutModule::Initialize()
nsMathMLAtoms::AddRefAtoms();
#endif
// SVG
#ifdef MOZ_SVG
nsSVGAtoms::AddRefAtoms();
#endif
// XXX Initialize the script name set thingy-ma-jigger
if (!gRegistry) {
rv = nsServiceManager::GetService(kCScriptNameSetRegistryCID,
@ -244,6 +254,10 @@ nsLayoutModule::Shutdown()
nsMathMLOperators::ReleaseTable();
nsMathMLAtoms::ReleaseAtoms();
#endif
// SVG
#ifdef MOZ_SVG
nsSVGAtoms::ReleaseAtoms();
#endif
nsTextTransformer::Shutdown();

View File

@ -101,3 +101,9 @@ INCLUDES += \
-I$(srcdir)/../../../mathml/content/src \
-I$(srcdir)/../../../mathml/base/src
endif
ifdef MOZ_SVG
INCLUDES += \
-I$(srcdir)/../../../svg/content/src \
-I$(srcdir)/../../../svg/base/src
endif

View File

@ -101,6 +101,10 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib \
!ifdef MOZ_MATHML
-I..\..\..\mathml\content\src \
-I..\..\..\mathml\base\src \
!endif
!ifdef MOZ_SVG
-I..\..\..\svg\content\src \
-I..\..\..\svg\base\src \
!endif
-I..\..\forms\src \
-I..\..\base\src -I..\..\table\src -I..\..\content\src -I$(PUBLIC)\js -I$(PUBLIC)\dom

View File

@ -32,6 +32,9 @@ DIRS= \
!endif
!ifdef MOZ_MATHML
mathml \
!endif
!ifdef MOZ_SVG
svg \
!endif
events \
build \