change the interface and pass nsISupport* for document instead of PRInt32 so we won't drop

data on 64-bits machine. r=harishd


git-svn-id: svn://10.0.0.236/trunk@63800 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com
2000-03-23 00:53:53 +00:00
parent 550819608b
commit 18b8424048
3 changed files with 4 additions and 5 deletions

View File

@@ -51,8 +51,7 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(
(nsISupports**)&docLoader)))
goto done;
// temp change to (PRUint32) cast untill we change the GetContentViewerContainer interface
if(NS_FAILED(rv =docLoader->GetContentViewerContainer((PRUint32)aDocumentID, &cvc)))
if(NS_FAILED(rv =docLoader->GetContentViewerContainer(aDocumentID, &cvc)))
goto done;
/* sspitzer: this was necessary to get printing of mail to work (sort of)

View File

@@ -314,10 +314,10 @@ nsDocLoaderImpl::GetLoadGroup(nsILoadGroup** aResult)
}
NS_IMETHODIMP
nsDocLoaderImpl::GetContentViewerContainer(PRUint32 aDocumentID,
nsDocLoaderImpl::GetContentViewerContainer(nsISupports* aDocumentID,
nsIContentViewerContainer** aResult)
{
nsISupports* base = (nsISupports*) aDocumentID;
nsISupports* base = aDocumentID;
nsIDocument* doc;
nsresult rv;

View File

@@ -42,7 +42,7 @@ interface nsIDocumentLoader : nsISupports
void removeObserver(in nsIDocumentLoaderObserver aObserver);
attribute nsISupports container;
[noscript] void getContentViewerContainer(in unsigned long aDocumentID, out nsIContentViewerContainer aResult);
[noscript] void getContentViewerContainer(in nsISupports aDocumentID, out nsIContentViewerContainer aResult);
nsILoadGroup getLoadGroup();
void destroy();