зеркало из https://github.com/mozilla/pjs.git
change the interface and pass nsISupport* for document instead of PRInt32 so we won't drop
data on 64-bits machine. r=harishd
This commit is contained in:
Родитель
97c62dce70
Коммит
979a0eb034
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче