mshtml: Get rid of no longer needed document argument from script_elem_from_nsscript.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a19caad9d0
commit
dfc13245f1
|
@ -447,7 +447,7 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
|
||||||
HTMLScriptElement_unlink
|
HTMLScriptElement_unlink
|
||||||
};
|
};
|
||||||
|
|
||||||
HRESULT script_elem_from_nsscript(HTMLDocumentNode *doc, nsIDOMHTMLScriptElement *nsscript, HTMLScriptElement **ret)
|
HRESULT script_elem_from_nsscript(nsIDOMHTMLScriptElement *nsscript, HTMLScriptElement **ret)
|
||||||
{
|
{
|
||||||
nsIDOMNode *nsnode;
|
nsIDOMNode *nsnode;
|
||||||
HTMLDOMNode *node;
|
HTMLDOMNode *node;
|
||||||
|
|
|
@ -35,7 +35,7 @@ typedef struct {
|
||||||
HTMLScriptElement *script;
|
HTMLScriptElement *script;
|
||||||
} script_queue_entry_t;
|
} script_queue_entry_t;
|
||||||
|
|
||||||
HRESULT script_elem_from_nsscript(HTMLDocumentNode*,nsIDOMHTMLScriptElement*,HTMLScriptElement**) DECLSPEC_HIDDEN;
|
HRESULT script_elem_from_nsscript(nsIDOMHTMLScriptElement*,HTMLScriptElement**) DECLSPEC_HIDDEN;
|
||||||
void bind_event_scripts(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
void bind_event_scripts(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
||||||
HRESULT load_script(HTMLScriptElement*,const WCHAR*,BOOL) DECLSPEC_HIDDEN;
|
HRESULT load_script(HTMLScriptElement*,const WCHAR*,BOOL) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
|
|
@ -334,7 +334,7 @@ static nsresult run_insert_script(HTMLDocumentNode *doc, nsISupports *script_ifa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hres = script_elem_from_nsscript(doc, nsscript, &script_elem);
|
hres = script_elem_from_nsscript(nsscript, &script_elem);
|
||||||
nsIDOMHTMLScriptElement_Release(nsscript);
|
nsIDOMHTMLScriptElement_Release(nsscript);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
|
@ -1588,7 +1588,7 @@ void bind_event_scripts(HTMLDocumentNode *doc)
|
||||||
assert(nsres == NS_OK);
|
assert(nsres == NS_OK);
|
||||||
nsIDOMNode_Release(script_node);
|
nsIDOMNode_Release(script_node);
|
||||||
|
|
||||||
hres = script_elem_from_nsscript(doc, nsscript, &script_elem);
|
hres = script_elem_from_nsscript(nsscript, &script_elem);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue