Fix for 73137. r=danm, sr=hewitt

This commit is contained in:
hyatt%netscape.com 2001-04-10 02:10:02 +00:00
parent 66b62a714a
commit 7b2a26b37c
2 changed files with 4 additions and 2 deletions

View File

@ -2210,7 +2210,8 @@ DocumentViewerImpl::CreateStyleSet(nsIDocument* aDocument,
NS_WITH_SERVICE(nsIChromeRegistry, chromeRegistry, "@mozilla.org/chrome/chrome-registry;1", &rv);
if (NS_SUCCEEDED(rv) && chromeRegistry) {
nsCOMPtr<nsISupportsArray> sheets;
chromeRegistry->GetBackstopSheets(getter_AddRefs(sheets));
nsCOMPtr<nsIDocShell> ds(do_QueryInterface(mContainer));
chromeRegistry->GetBackstopSheets(ds, getter_AddRefs(sheets));
if(sheets){
nsCOMPtr<nsICSSStyleSheet> sheet;
PRUint32 count;

View File

@ -2210,7 +2210,8 @@ DocumentViewerImpl::CreateStyleSet(nsIDocument* aDocument,
NS_WITH_SERVICE(nsIChromeRegistry, chromeRegistry, "@mozilla.org/chrome/chrome-registry;1", &rv);
if (NS_SUCCEEDED(rv) && chromeRegistry) {
nsCOMPtr<nsISupportsArray> sheets;
chromeRegistry->GetBackstopSheets(getter_AddRefs(sheets));
nsCOMPtr<nsIDocShell> ds(do_QueryInterface(mContainer));
chromeRegistry->GetBackstopSheets(ds, getter_AddRefs(sheets));
if(sheets){
nsCOMPtr<nsICSSStyleSheet> sheet;
PRUint32 count;