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:
Jacek Caban 2018-02-19 14:49:39 +01:00 committed by Alexandre Julliard
parent a19caad9d0
commit dfc13245f1
4 changed files with 4 additions and 4 deletions

View File

@ -447,7 +447,7 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
HTMLScriptElement_unlink
};
HRESULT script_elem_from_nsscript(HTMLDocumentNode *doc, nsIDOMHTMLScriptElement *nsscript, HTMLScriptElement **ret)
HRESULT script_elem_from_nsscript(nsIDOMHTMLScriptElement *nsscript, HTMLScriptElement **ret)
{
nsIDOMNode *nsnode;
HTMLDOMNode *node;

View File

@ -35,7 +35,7 @@ typedef struct {
HTMLScriptElement *script;
} 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;
HRESULT load_script(HTMLScriptElement*,const WCHAR*,BOOL) DECLSPEC_HIDDEN;

View File

@ -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);
if(FAILED(hres))
return NS_ERROR_FAILURE;

View File

@ -1588,7 +1588,7 @@ void bind_event_scripts(HTMLDocumentNode *doc)
assert(nsres == NS_OK);
nsIDOMNode_Release(script_node);
hres = script_elem_from_nsscript(doc, nsscript, &script_elem);
hres = script_elem_from_nsscript(nsscript, &script_elem);
if(FAILED(hres))
continue;