Checking in patch from Andreas to fix Mozilla's XSL hooks (bug 36038). Does not affect the default mozilla build.

git-svn-id: svn://10.0.0.236/trunk@72459 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
2000-06-16 23:29:19 +00:00
parent b5b34a2a70
commit 72b21b2508
2 changed files with 10 additions and 4 deletions

View File

@@ -768,7 +768,10 @@ nsXMLContentSink::OpenContainer(const nsIParserNode& aNode)
// For XSL, we need to wait till after the transform
// to set the root content object. Hence, the following
// ifndef.
#ifndef MOZ_XSL
#ifdef MOZ_XSL
if (!mXSLTransformMediator)
mDocument->SetRootContent(mDocElement);
#else
mDocument->SetRootContent(mDocElement);
#endif
}
@@ -1157,7 +1160,7 @@ nsXMLContentSink::LoadXSLStyleSheet(nsIURI* aUrl, const nsString& aType)
// Set the parser as the stream listener and start the URL load
nsCOMPtr<nsIStreamListener> sl;
rv = mParser->QueryInterface(kIStreamListenerIID, (void**)getter_AddRefs(sl));
rv = parser->QueryInterface(kIStreamListenerIID, (void**)getter_AddRefs(sl));
if (NS_FAILED(rv)) return rv;
rv = NS_OpenURI(sl, nsnull, aUrl);

View File

@@ -768,7 +768,10 @@ nsXMLContentSink::OpenContainer(const nsIParserNode& aNode)
// For XSL, we need to wait till after the transform
// to set the root content object. Hence, the following
// ifndef.
#ifndef MOZ_XSL
#ifdef MOZ_XSL
if (!mXSLTransformMediator)
mDocument->SetRootContent(mDocElement);
#else
mDocument->SetRootContent(mDocElement);
#endif
}
@@ -1157,7 +1160,7 @@ nsXMLContentSink::LoadXSLStyleSheet(nsIURI* aUrl, const nsString& aType)
// Set the parser as the stream listener and start the URL load
nsCOMPtr<nsIStreamListener> sl;
rv = mParser->QueryInterface(kIStreamListenerIID, (void**)getter_AddRefs(sl));
rv = parser->QueryInterface(kIStreamListenerIID, (void**)getter_AddRefs(sl));
if (NS_FAILED(rv)) return rv;
rv = NS_OpenURI(sl, nsnull, aUrl);