mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in pluginhost.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5bc2d76b8c
commit
b7e50ee92e
|
@ -1660,7 +1660,7 @@ static BOOL parse_classid(const PRUnichar *classid, CLSID *clsid)
|
|||
return SUCCEEDED(hres);
|
||||
}
|
||||
|
||||
static BOOL get_elem_clsid(nsIDOMHTMLElement *elem, CLSID *clsid)
|
||||
static BOOL get_elem_clsid(nsIDOMElement *elem, CLSID *clsid)
|
||||
{
|
||||
const PRUnichar *val;
|
||||
nsAString val_str;
|
||||
|
@ -1669,7 +1669,7 @@ static BOOL get_elem_clsid(nsIDOMHTMLElement *elem, CLSID *clsid)
|
|||
|
||||
static const PRUnichar classidW[] = {'c','l','a','s','s','i','d',0};
|
||||
|
||||
nsres = get_elem_attr_value((nsIDOMElement*)elem, classidW, &val_str, &val);
|
||||
nsres = get_elem_attr_value(elem, classidW, &val_str, &val);
|
||||
if(NS_SUCCEEDED(nsres)) {
|
||||
if(*val)
|
||||
ret = parse_classid(val, clsid);
|
||||
|
@ -1895,7 +1895,7 @@ static void install_codebase(const WCHAR *url)
|
|||
WARN("FAILED: %08x\n", hres);
|
||||
}
|
||||
|
||||
static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem)
|
||||
static void check_codebase(HTMLInnerWindow *window, nsIDOMElement *nselem)
|
||||
{
|
||||
BOOL is_on_list = FALSE;
|
||||
install_entry_t *iter;
|
||||
|
@ -1907,7 +1907,7 @@ static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem)
|
|||
|
||||
static const PRUnichar codebaseW[] = {'c','o','d','e','b','a','s','e',0};
|
||||
|
||||
nsres = get_elem_attr_value((nsIDOMElement*)nselem, codebaseW, &val_str, &val);
|
||||
nsres = get_elem_attr_value(nselem, codebaseW, &val_str, &val);
|
||||
if(NS_SUCCEEDED(nsres)) {
|
||||
if(*val) {
|
||||
hres = CoInternetCombineUrlEx(window->base.outer_window->uri, val, 0, &uri, 0);
|
||||
|
@ -1958,7 +1958,7 @@ static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem)
|
|||
IUri_Release(uri);
|
||||
}
|
||||
|
||||
static IUnknown *create_activex_object(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, CLSID *clsid)
|
||||
static IUnknown *create_activex_object(HTMLDocumentNode *doc, nsIDOMElement *nselem, CLSID *clsid)
|
||||
{
|
||||
IClassFactoryEx *cfex;
|
||||
IClassFactory *cf;
|
||||
|
@ -2069,7 +2069,7 @@ HRESULT create_plugin_host(HTMLDocumentNode *doc, HTMLPluginContainer *container
|
|||
|
||||
assert(!container->plugin_host);
|
||||
|
||||
unk = create_activex_object(doc, container->element.nselem, &clsid);
|
||||
unk = create_activex_object(doc, container->element.dom_element, &clsid);
|
||||
if(!unk)
|
||||
return E_FAIL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue