зеркало из https://github.com/mozilla/pjs.git
Fix static build bustage.
This commit is contained in:
Родитель
437e0ebb3f
Коммит
02d215a5eb
|
@ -174,7 +174,7 @@ RegisterTransformiix(nsIComponentManager *aCompMgr,
|
|||
TX_LG_IMPL;
|
||||
static PRBool gInitialized = PR_FALSE;
|
||||
static nsIExceptionProvider *gXPathExceptionProvider = 0;
|
||||
nsINameSpaceManager *gNameSpaceManager = 0;
|
||||
nsINameSpaceManager *gTxNameSpaceManager = 0;
|
||||
|
||||
// Perform our one-time intialization for this module
|
||||
PR_STATIC_CALLBACK(nsresult)
|
||||
|
@ -207,9 +207,9 @@ Initialize(nsIModule* aSelf)
|
|||
return rv;
|
||||
}
|
||||
|
||||
rv = CallGetService(NS_NAMESPACEMANAGER_CONTRACTID, &gNameSpaceManager);
|
||||
rv = CallGetService(NS_NAMESPACEMANAGER_CONTRACTID, &gTxNameSpaceManager);
|
||||
if (NS_FAILED(rv)) {
|
||||
gNameSpaceManager = nsnull;
|
||||
gTxNameSpaceManager = nsnull;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -246,7 +246,7 @@ Shutdown(nsIModule* aSelf)
|
|||
txXSLTProcessor::txShutdown();
|
||||
|
||||
NS_IF_RELEASE(gTxSecurityManager);
|
||||
NS_IF_RELEASE(gNameSpaceManager);
|
||||
NS_IF_RELEASE(gTxNameSpaceManager);
|
||||
|
||||
TX_LG_DELETE;
|
||||
}
|
||||
|
|
|
@ -52,9 +52,9 @@ Attr::Attr(nsIDOMAttr* aAttr, Document* aOwner) : Node(aAttr, aOwner)
|
|||
aAttr->GetNamespaceURI(ns);
|
||||
mNamespaceID = kNameSpaceID_None;
|
||||
if (!ns.IsEmpty()) {
|
||||
NS_ASSERTION(gNameSpaceManager,"No namespace manager");
|
||||
if (gNameSpaceManager) {
|
||||
gNameSpaceManager->GetNameSpaceID(ns, mNamespaceID);
|
||||
NS_ASSERTION(gTxNameSpaceManager,"No namespace manager");
|
||||
if (gTxNameSpaceManager) {
|
||||
gTxNameSpaceManager->GetNameSpaceID(ns, mNamespaceID);
|
||||
}
|
||||
}
|
||||
mNSId = mNamespaceID;
|
||||
|
|
|
@ -373,9 +373,9 @@ Attr* Document::createAttribute(nsIDOMAttr* aAttr)
|
|||
aAttr->GetNamespaceURI(ns);
|
||||
PRInt32 namespaceID = kNameSpaceID_None;
|
||||
if (!ns.IsEmpty()) {
|
||||
NS_ASSERTION(gNameSpaceManager, "No namespace manager");
|
||||
if (gNameSpaceManager) {
|
||||
gNameSpaceManager->GetNameSpaceID(ns, namespaceID);
|
||||
NS_ASSERTION(gTxNameSpaceManager, "No namespace manager");
|
||||
if (gTxNameSpaceManager) {
|
||||
gTxNameSpaceManager->GetNameSpaceID(ns, namespaceID);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -652,8 +652,8 @@ Node* Document::createWrapper(nsIDOMNode* aNode)
|
|||
PRInt32 Document::namespaceURIToID(const String& aNamespaceURI)
|
||||
{
|
||||
PRInt32 namesspaceID = kNameSpaceID_Unknown;
|
||||
if (gNameSpaceManager) {
|
||||
gNameSpaceManager->RegisterNameSpace(aNamespaceURI,
|
||||
if (gTxNameSpaceManager) {
|
||||
gTxNameSpaceManager->RegisterNameSpace(aNamespaceURI,
|
||||
namesspaceID);
|
||||
}
|
||||
return namesspaceID;
|
||||
|
@ -661,8 +661,8 @@ PRInt32 Document::namespaceURIToID(const String& aNamespaceURI)
|
|||
|
||||
void Document::namespaceIDToURI(PRInt32 aNamespaceID, String& aNamespaceURI)
|
||||
{
|
||||
if (gNameSpaceManager) {
|
||||
gNameSpaceManager->GetNameSpaceURI(aNamespaceID,
|
||||
if (gTxNameSpaceManager) {
|
||||
gTxNameSpaceManager->GetNameSpaceURI(aNamespaceID,
|
||||
aNamespaceURI);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -354,11 +354,11 @@ PRInt32 Node::lookupNamespaceID(txAtom* aPrefix)
|
|||
NS_ENSURE_SUCCESS(rv, kNameSpaceID_Unknown);
|
||||
if (rv != NS_CONTENT_ATTR_NOT_THERE) {
|
||||
PRInt32 nsId;
|
||||
NS_ASSERTION(gNameSpaceManager, "No namespace manager");
|
||||
if (!gNameSpaceManager) {
|
||||
NS_ASSERTION(gTxNameSpaceManager, "No namespace manager");
|
||||
if (!gTxNameSpaceManager) {
|
||||
return kNameSpaceID_Unknown;
|
||||
}
|
||||
gNameSpaceManager->RegisterNameSpace(uri, nsId);
|
||||
gTxNameSpaceManager->RegisterNameSpace(uri, nsId);
|
||||
return nsId;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ typedef UNICODE_CHAR DOM_CHAR;
|
|||
#define kTxAttrIndexOffset 0x40000000;
|
||||
#define kTxChildIndexOffset 0x80000000;
|
||||
|
||||
extern nsINameSpaceManager* gNameSpaceManager;
|
||||
extern nsINameSpaceManager* gTxNameSpaceManager;
|
||||
|
||||
class nsIDOMAttr;
|
||||
class nsIDOMDocument;
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
#include "nsDOMError.h"
|
||||
#include "txURIUtils.h"
|
||||
|
||||
extern nsINameSpaceManager* gNameSpaceManager;
|
||||
extern nsINameSpaceManager* gTxNameSpaceManager;
|
||||
|
||||
NS_IMPL_ADDREF(nsXPathEvaluator)
|
||||
NS_IMPL_RELEASE(nsXPathEvaluator)
|
||||
|
@ -153,7 +153,7 @@ nsresult nsXPathEvaluator::ParseContextImpl::resolveNamespacePrefix
|
|||
}
|
||||
|
||||
// get the namespaceID for the URI
|
||||
return gNameSpaceManager->RegisterNameSpace(ns, aID);
|
||||
return gTxNameSpaceManager->RegisterNameSpace(ns, aID);
|
||||
}
|
||||
|
||||
nsresult nsXPathEvaluator::ParseContextImpl::resolveFunctionCall(txAtom* aName,
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
#include "nsIDOMDocumentFragment.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
|
||||
extern nsINameSpaceManager* gNameSpaceManager;
|
||||
extern nsINameSpaceManager* gTxNameSpaceManager;
|
||||
|
||||
static NS_DEFINE_CID(kXMLDocumentCID, NS_XMLDOCUMENT_CID);
|
||||
static NS_DEFINE_CID(kHTMLDocumentCID, NS_HTMLDOCUMENT_CID);
|
||||
|
@ -153,7 +153,7 @@ void txMozillaXMLOutput::attribute(const String& aName,
|
|||
}
|
||||
else {
|
||||
nsAutoString nsURI;
|
||||
gNameSpaceManager->GetNameSpaceURI(aNsID, nsURI);
|
||||
gTxNameSpaceManager->GetNameSpaceURI(aNsID, nsURI);
|
||||
element->SetAttributeNS(nsURI, aName, aValue);
|
||||
}
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ void txMozillaXMLOutput::startElement(const String& aName,
|
|||
}
|
||||
else {
|
||||
nsAutoString nsURI;
|
||||
gNameSpaceManager->GetNameSpaceURI(aNsID, nsURI);
|
||||
gTxNameSpaceManager->GetNameSpaceURI(aNsID, nsURI);
|
||||
rv = mDocument->CreateElementNS(nsURI, aName,
|
||||
getter_AddRefs(element));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Can't create element");
|
||||
|
|
|
@ -601,7 +601,7 @@ txMozillaXSLTProcessor::SetParameter(const nsAString & aNamespaceURI,
|
|||
}
|
||||
|
||||
PRInt32 nsId = kNameSpaceID_Unknown;
|
||||
nsresult rv = gNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
nsresult rv = gTxNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
nsCOMPtr<nsIAtom> localName = do_GetAtom(aLocalName);
|
||||
txExpandedName varName(nsId, localName);
|
||||
|
@ -624,7 +624,7 @@ txMozillaXSLTProcessor::GetParameter(const nsAString& aNamespaceURI,
|
|||
nsIVariant **aResult)
|
||||
{
|
||||
PRInt32 nsId = kNameSpaceID_Unknown;
|
||||
nsresult rv = gNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
nsresult rv = gTxNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
nsCOMPtr<nsIAtom> localName = do_GetAtom(aLocalName);
|
||||
txExpandedName varName(nsId, localName);
|
||||
|
@ -641,7 +641,7 @@ txMozillaXSLTProcessor::RemoveParameter(const nsAString& aNamespaceURI,
|
|||
const nsAString& aLocalName)
|
||||
{
|
||||
PRInt32 nsId = kNameSpaceID_Unknown;
|
||||
nsresult rv = gNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
nsresult rv = gTxNameSpaceManager->RegisterNameSpace(aNamespaceURI, nsId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
nsCOMPtr<nsIAtom> localName = do_GetAtom(aLocalName);
|
||||
txExpandedName varName(nsId, localName);
|
||||
|
|
Загрузка…
Ссылка в новой задаче