зеркало из https://github.com/mozilla/gecko-dev.git
Adding remaining MathML hooks. r:peterl.
This commit is contained in:
Родитель
93d65241ae
Коммит
93ac1da9b5
|
@ -50,3 +50,7 @@ INCLUDES += \
|
|||
-I$(DIST)/public/raptor \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_MATHML
|
||||
INCLUDES += \
|
||||
-I$(srcdir)/../../../mathml/content/src
|
||||
endif
|
||||
|
|
|
@ -43,6 +43,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \
|
|||
-I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \
|
||||
-I..\..\..\html\content\src -I..\..\..\html\document\src \
|
||||
-I..\..\..\xul\content\src -I..\..\..\xsl\document\src \
|
||||
!ifdef MOZ_MATHML
|
||||
-I..\..\..\mathml\content\src \
|
||||
!endif
|
||||
-I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref \
|
||||
-I$(PUBLIC)\expat
|
||||
|
||||
|
|
|
@ -58,6 +58,12 @@
|
|||
#include "nsXULAtoms.h"
|
||||
#endif
|
||||
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLOperators.h"
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kIDOMDocumentIID, NS_IDOMDOCUMENT_IID);
|
||||
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
|
||||
static NS_DEFINE_IID(kIXMLDocumentIID, NS_IXMLDOCUMENT_IID);
|
||||
|
@ -96,6 +102,11 @@ nsXMLDocument::nsXMLDocument()
|
|||
#ifdef XSL
|
||||
mTransformMediator = nsnull;
|
||||
#endif
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
nsMathMLOperators::AddRefTable();
|
||||
nsMathMLAtoms::AddRefAtoms();
|
||||
#endif
|
||||
}
|
||||
|
||||
nsXMLDocument::~nsXMLDocument()
|
||||
|
@ -116,6 +127,11 @@ nsXMLDocument::~nsXMLDocument()
|
|||
#ifdef XSL
|
||||
NS_IF_RELEASE(mTransformMediator);
|
||||
#endif
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
nsMathMLOperators::ReleaseTable();
|
||||
nsMathMLAtoms::ReleaseAtoms();
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -50,3 +50,7 @@ INCLUDES += \
|
|||
-I$(DIST)/public/raptor \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_MATHML
|
||||
INCLUDES += \
|
||||
-I$(srcdir)/../../../mathml/content/src
|
||||
endif
|
||||
|
|
|
@ -43,6 +43,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \
|
|||
-I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \
|
||||
-I..\..\..\html\content\src -I..\..\..\html\document\src \
|
||||
-I..\..\..\xul\content\src -I..\..\..\xsl\document\src \
|
||||
!ifdef MOZ_MATHML
|
||||
-I..\..\..\mathml\content\src \
|
||||
!endif
|
||||
-I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref \
|
||||
-I$(PUBLIC)\expat
|
||||
|
||||
|
|
|
@ -58,6 +58,12 @@
|
|||
#include "nsXULAtoms.h"
|
||||
#endif
|
||||
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
#include "nsMathMLAtoms.h"
|
||||
#include "nsMathMLOperators.h"
|
||||
#endif
|
||||
|
||||
static NS_DEFINE_IID(kIDOMDocumentIID, NS_IDOMDOCUMENT_IID);
|
||||
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
|
||||
static NS_DEFINE_IID(kIXMLDocumentIID, NS_IXMLDOCUMENT_IID);
|
||||
|
@ -96,6 +102,11 @@ nsXMLDocument::nsXMLDocument()
|
|||
#ifdef XSL
|
||||
mTransformMediator = nsnull;
|
||||
#endif
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
nsMathMLOperators::AddRefTable();
|
||||
nsMathMLAtoms::AddRefAtoms();
|
||||
#endif
|
||||
}
|
||||
|
||||
nsXMLDocument::~nsXMLDocument()
|
||||
|
@ -116,6 +127,11 @@ nsXMLDocument::~nsXMLDocument()
|
|||
#ifdef XSL
|
||||
NS_IF_RELEASE(mTransformMediator);
|
||||
#endif
|
||||
//MathML Mod - DJF
|
||||
#ifdef MOZ_MATHML
|
||||
nsMathMLOperators::ReleaseTable();
|
||||
nsMathMLAtoms::ReleaseAtoms();
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче