This commit is contained in:
warren%netscape.com 1999-06-29 00:37:14 +00:00
Родитель 8ec724a5ef
Коммит 28d53ce097
4 изменённых файлов: 2 добавлений и 52 удалений

Просмотреть файл

@ -438,11 +438,7 @@ protected:
nsIArena* mArena;
nsString* mDocumentTitle;
nsIURI* mDocumentURL;
#ifdef NECKO
nsILoadGroup* mDocumentLoadGroup;
#else
nsILoadGroup* mDocumentLoadGroup;
#endif
nsString mCharacterSet;
nsIDocument* mParentDocument;
nsVoidArray mSubDocuments;

Просмотреть файл

@ -438,11 +438,7 @@ protected:
nsIArena* mArena;
nsString* mDocumentTitle;
nsIURI* mDocumentURL;
#ifdef NECKO
nsILoadGroup* mDocumentLoadGroup;
#else
nsILoadGroup* mDocumentLoadGroup;
#endif
nsString mCharacterSet;
nsIDocument* mParentDocument;
nsVoidArray mSubDocuments;

Просмотреть файл

@ -1595,28 +1595,7 @@ nsresult nsDocumentBindInfo::Bind(nsIURI* aURL, nsIStreamListener* aListener)
nsServiceManager::ReleaseService(kNetServiceCID, inet);
}
#else
NS_WITH_SERVICE(nsIIOService, service, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsIURI *uri = nsnull;
rv = m_Url->QueryInterface(nsIURI::GetIID(), (void**)&uri);
if (NS_FAILED(rv)) return rv;
nsIChannel *channel = nsnull;
// XXX NECKO verb? sinkGetter?
rv = service->NewChannelFromURI("load", uri, nsnull, &channel);
NS_RELEASE(uri);
if (NS_FAILED(rv)) return rv;
nsIEventQueue *eventQ = nsnull;
NS_WITH_SERVICE(nsIEventQueueService, eqService, kEventQueueServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = eqService->GetThreadEventQueue(PR_CurrentThread(), &eventQ);
if (NS_FAILED(rv)) return rv;
rv = channel->AsyncRead(0, -1, nsnull, eventQ, this);
NS_RELEASE(eventQ);
rv = NS_OpenURI(this, m_Url);
#endif // NECKO
return rv;

Просмотреть файл

@ -1595,28 +1595,7 @@ nsresult nsDocumentBindInfo::Bind(nsIURI* aURL, nsIStreamListener* aListener)
nsServiceManager::ReleaseService(kNetServiceCID, inet);
}
#else
NS_WITH_SERVICE(nsIIOService, service, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsIURI *uri = nsnull;
rv = m_Url->QueryInterface(nsIURI::GetIID(), (void**)&uri);
if (NS_FAILED(rv)) return rv;
nsIChannel *channel = nsnull;
// XXX NECKO verb? sinkGetter?
rv = service->NewChannelFromURI("load", uri, nsnull, &channel);
NS_RELEASE(uri);
if (NS_FAILED(rv)) return rv;
nsIEventQueue *eventQ = nsnull;
NS_WITH_SERVICE(nsIEventQueueService, eqService, kEventQueueServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = eqService->GetThreadEventQueue(PR_CurrentThread(), &eventQ);
if (NS_FAILED(rv)) return rv;
rv = channel->AsyncRead(0, -1, nsnull, eventQ, this);
NS_RELEASE(eventQ);
rv = NS_OpenURI(this, m_Url);
#endif // NECKO
return rv;