mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 22:01:51 +00:00
mshtml: Don't access BSCallback directly in nsio.c.
This commit is contained in:
parent
2870f21d06
commit
f792ada40f
@ -434,6 +434,8 @@ HRESULT load_stream(BSCallback*,IStream*);
|
|||||||
void set_document_bscallback(HTMLDocument*,BSCallback*);
|
void set_document_bscallback(HTMLDocument*,BSCallback*);
|
||||||
void set_current_mon(HTMLDocument*,IMoniker*);
|
void set_current_mon(HTMLDocument*,IMoniker*);
|
||||||
|
|
||||||
|
void channelbsc_set_channel(BSCallback*,nsChannel*,nsIStreamListener*,nsISupports*);
|
||||||
|
|
||||||
IHTMLSelectionObject *HTMLSelectionObject_Create(HTMLDocument*,nsISelection*);
|
IHTMLSelectionObject *HTMLSelectionObject_Create(HTMLDocument*,nsISelection*);
|
||||||
IHTMLTxtRange *HTMLTxtRange_Create(HTMLDocument*,nsIDOMRange*);
|
IHTMLTxtRange *HTMLTxtRange_Create(HTMLDocument*,nsIDOMRange*);
|
||||||
IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration*);
|
IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration*);
|
||||||
|
@ -908,3 +908,17 @@ HRESULT load_stream(BSCallback *bscallback, IStream *stream)
|
|||||||
|
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void channelbsc_set_channel(BSCallback *This, nsChannel *channel, nsIStreamListener *listener, nsISupports *context)
|
||||||
|
{
|
||||||
|
nsIChannel_AddRef(NSCHANNEL(channel));
|
||||||
|
This->nschannel = channel;
|
||||||
|
|
||||||
|
nsIStreamListener_AddRef(listener);
|
||||||
|
This->nslistener = listener;
|
||||||
|
|
||||||
|
if(context) {
|
||||||
|
nsISupports_AddRef(context);
|
||||||
|
This->nscontext = context;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -685,16 +685,7 @@ static nsresult async_open_doc_uri(nsChannel *This, NSContainer *container,
|
|||||||
*open = FALSE;
|
*open = FALSE;
|
||||||
|
|
||||||
if(container->bscallback) {
|
if(container->bscallback) {
|
||||||
nsIChannel_AddRef(NSCHANNEL(This));
|
channelbsc_set_channel(container->bscallback, This, listener, context);
|
||||||
container->bscallback->nschannel = This;
|
|
||||||
|
|
||||||
nsIStreamListener_AddRef(listener);
|
|
||||||
container->bscallback->nslistener = listener;
|
|
||||||
|
|
||||||
if(context) {
|
|
||||||
nsISupports_AddRef(context);
|
|
||||||
container->bscallback->nscontext = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(container->doc && container->doc->mime) {
|
if(container->doc && container->doc->mime) {
|
||||||
DWORD len;
|
DWORD len;
|
||||||
@ -781,16 +772,7 @@ static nsresult async_open(nsChannel *This, NSContainer *container, nsIStreamLis
|
|||||||
bscallback = create_bscallback(mon);
|
bscallback = create_bscallback(mon);
|
||||||
IMoniker_Release(mon);
|
IMoniker_Release(mon);
|
||||||
|
|
||||||
nsIChannel_AddRef(NSCHANNEL(This));
|
channelbsc_set_channel(bscallback, This, listener, context);
|
||||||
bscallback->nschannel = This;
|
|
||||||
|
|
||||||
nsIStreamListener_AddRef(listener);
|
|
||||||
bscallback->nslistener = listener;
|
|
||||||
|
|
||||||
if(context) {
|
|
||||||
nsISupports_AddRef(context);
|
|
||||||
bscallback->nscontext = context;
|
|
||||||
}
|
|
||||||
|
|
||||||
task = heap_alloc(sizeof(task_t));
|
task = heap_alloc(sizeof(task_t));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user