зеркало из https://github.com/mozilla/pjs.git
Initial checkin of SVG prototype code for Dean Jackson (ifdef'ed)
This commit is contained in:
Родитель
a99318a97e
Коммит
826291592f
|
@ -32,6 +32,10 @@ ifdef MOZ_MATHML
|
||||||
DIRS += mathml
|
DIRS += mathml
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef MOZ_SVG
|
||||||
|
DIRS += svg
|
||||||
|
endif
|
||||||
|
|
||||||
DIRS += events build
|
DIRS += events build
|
||||||
|
|
||||||
ifdef ENABLE_TESTS
|
ifdef ENABLE_TESTS
|
||||||
|
|
|
@ -74,6 +74,13 @@ SHARED_LIBRARY_LIBS += \
|
||||||
$(NSNULL)
|
$(NSNULL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef MOZ_SVG
|
||||||
|
SHARED_LIBRARY_LIBS += \
|
||||||
|
$(DIST)/lib/libraptorsvgcontent_s.a \
|
||||||
|
$(DIST)/lib/libraptorsvgbase_s.a \
|
||||||
|
$(NSNULL)
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_DSO_LDOPTS = \
|
EXTRA_DSO_LDOPTS = \
|
||||||
$(MKSHLIB_FORCE_ALL) \
|
$(MKSHLIB_FORCE_ALL) \
|
||||||
$(SHARED_LIBRARY_LIBS) \
|
$(SHARED_LIBRARY_LIBS) \
|
||||||
|
|
|
@ -54,6 +54,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\dom \
|
||||||
-I..\xul\content\src \
|
-I..\xul\content\src \
|
||||||
!ifdef MOZ_MATHML
|
!ifdef MOZ_MATHML
|
||||||
-I..\mathml\content\src \
|
-I..\mathml\content\src \
|
||||||
|
!endif
|
||||||
|
!ifdef MOZ_SVG
|
||||||
|
-I..\svg\content\src \
|
||||||
!endif
|
!endif
|
||||||
-I$(PUBLIC)\rdf
|
-I$(PUBLIC)\rdf
|
||||||
|
|
||||||
|
@ -77,6 +80,10 @@ LLIBS= \
|
||||||
!ifdef MOZ_MATHML
|
!ifdef MOZ_MATHML
|
||||||
$(DIST)\lib\raptormathmlbase_s.lib \
|
$(DIST)\lib\raptormathmlbase_s.lib \
|
||||||
$(DIST)\lib\raptormathmlcontent_s.lib \
|
$(DIST)\lib\raptormathmlcontent_s.lib \
|
||||||
|
!endif
|
||||||
|
!ifdef MOZ_SVG
|
||||||
|
$(DIST)\lib\raptorsvgbase_s.lib \
|
||||||
|
$(DIST)\lib\raptorsvgcontent_s.lib \
|
||||||
!endif
|
!endif
|
||||||
$(DIST)\lib\raptorevents_s.lib \
|
$(DIST)\lib\raptorevents_s.lib \
|
||||||
$(DIST)\lib\xpcom.lib \
|
$(DIST)\lib\xpcom.lib \
|
||||||
|
|
|
@ -54,6 +54,11 @@
|
||||||
|
|
||||||
#include "nsIDocumentEncoder.h"
|
#include "nsIDocumentEncoder.h"
|
||||||
|
|
||||||
|
// SVG
|
||||||
|
#ifdef MOZ_SVG
|
||||||
|
#include "nsSVGAtoms.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// XXX
|
// XXX
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
|
|
||||||
|
@ -202,6 +207,11 @@ nsLayoutModule::Initialize()
|
||||||
nsMathMLAtoms::AddRefAtoms();
|
nsMathMLAtoms::AddRefAtoms();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// SVG
|
||||||
|
#ifdef MOZ_SVG
|
||||||
|
nsSVGAtoms::AddRefAtoms();
|
||||||
|
#endif
|
||||||
|
|
||||||
// XXX Initialize the script name set thingy-ma-jigger
|
// XXX Initialize the script name set thingy-ma-jigger
|
||||||
if (!gRegistry) {
|
if (!gRegistry) {
|
||||||
rv = nsServiceManager::GetService(kCScriptNameSetRegistryCID,
|
rv = nsServiceManager::GetService(kCScriptNameSetRegistryCID,
|
||||||
|
@ -244,6 +254,10 @@ nsLayoutModule::Shutdown()
|
||||||
nsMathMLOperators::ReleaseTable();
|
nsMathMLOperators::ReleaseTable();
|
||||||
nsMathMLAtoms::ReleaseAtoms();
|
nsMathMLAtoms::ReleaseAtoms();
|
||||||
#endif
|
#endif
|
||||||
|
// SVG
|
||||||
|
#ifdef MOZ_SVG
|
||||||
|
nsSVGAtoms::ReleaseAtoms();
|
||||||
|
#endif
|
||||||
|
|
||||||
nsTextTransformer::Shutdown();
|
nsTextTransformer::Shutdown();
|
||||||
|
|
||||||
|
|
|
@ -101,3 +101,9 @@ INCLUDES += \
|
||||||
-I$(srcdir)/../../../mathml/content/src \
|
-I$(srcdir)/../../../mathml/content/src \
|
||||||
-I$(srcdir)/../../../mathml/base/src
|
-I$(srcdir)/../../../mathml/base/src
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef MOZ_SVG
|
||||||
|
INCLUDES += \
|
||||||
|
-I$(srcdir)/../../../svg/content/src \
|
||||||
|
-I$(srcdir)/../../../svg/base/src
|
||||||
|
endif
|
||||||
|
|
|
@ -101,6 +101,10 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\netlib \
|
||||||
!ifdef MOZ_MATHML
|
!ifdef MOZ_MATHML
|
||||||
-I..\..\..\mathml\content\src \
|
-I..\..\..\mathml\content\src \
|
||||||
-I..\..\..\mathml\base\src \
|
-I..\..\..\mathml\base\src \
|
||||||
|
!endif
|
||||||
|
!ifdef MOZ_SVG
|
||||||
|
-I..\..\..\svg\content\src \
|
||||||
|
-I..\..\..\svg\base\src \
|
||||||
!endif
|
!endif
|
||||||
-I..\..\forms\src \
|
-I..\..\forms\src \
|
||||||
-I..\..\base\src -I..\..\table\src -I..\..\content\src -I$(PUBLIC)\js -I$(PUBLIC)\dom
|
-I..\..\base\src -I..\..\table\src -I..\..\content\src -I$(PUBLIC)\js -I$(PUBLIC)\dom
|
||||||
|
|
|
@ -32,6 +32,9 @@ DIRS= \
|
||||||
!endif
|
!endif
|
||||||
!ifdef MOZ_MATHML
|
!ifdef MOZ_MATHML
|
||||||
mathml \
|
mathml \
|
||||||
|
!endif
|
||||||
|
!ifdef MOZ_SVG
|
||||||
|
svg \
|
||||||
!endif
|
!endif
|
||||||
events \
|
events \
|
||||||
build \
|
build \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче