mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 15:34:01 +00:00
Checking in patch from Andreas to fix Mozilla's XSL hooks (bug 36038). Does not affect the default mozilla build.
This commit is contained in:
parent
3922bfe1d3
commit
41c8901b6b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user