Commit b7e50ee9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in pluginhost.c.

parent 5bc2d76b
...@@ -1660,7 +1660,7 @@ static BOOL parse_classid(const PRUnichar *classid, CLSID *clsid) ...@@ -1660,7 +1660,7 @@ static BOOL parse_classid(const PRUnichar *classid, CLSID *clsid)
return SUCCEEDED(hres); return SUCCEEDED(hres);
} }
static BOOL get_elem_clsid(nsIDOMHTMLElement *elem, CLSID *clsid) static BOOL get_elem_clsid(nsIDOMElement *elem, CLSID *clsid)
{ {
const PRUnichar *val; const PRUnichar *val;
nsAString val_str; nsAString val_str;
...@@ -1669,7 +1669,7 @@ static BOOL get_elem_clsid(nsIDOMHTMLElement *elem, CLSID *clsid) ...@@ -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}; 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(NS_SUCCEEDED(nsres)) {
if(*val) if(*val)
ret = parse_classid(val, clsid); ret = parse_classid(val, clsid);
...@@ -1895,7 +1895,7 @@ static void install_codebase(const WCHAR *url) ...@@ -1895,7 +1895,7 @@ static void install_codebase(const WCHAR *url)
WARN("FAILED: %08x\n", hres); 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; BOOL is_on_list = FALSE;
install_entry_t *iter; install_entry_t *iter;
...@@ -1907,7 +1907,7 @@ static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem) ...@@ -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}; 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(NS_SUCCEEDED(nsres)) {
if(*val) { if(*val) {
hres = CoInternetCombineUrlEx(window->base.outer_window->uri, val, 0, &uri, 0); hres = CoInternetCombineUrlEx(window->base.outer_window->uri, val, 0, &uri, 0);
...@@ -1958,7 +1958,7 @@ static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem) ...@@ -1958,7 +1958,7 @@ static void check_codebase(HTMLInnerWindow *window, nsIDOMHTMLElement *nselem)
IUri_Release(uri); 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; IClassFactoryEx *cfex;
IClassFactory *cf; IClassFactory *cf;
...@@ -2069,7 +2069,7 @@ HRESULT create_plugin_host(HTMLDocumentNode *doc, HTMLPluginContainer *container ...@@ -2069,7 +2069,7 @@ HRESULT create_plugin_host(HTMLDocumentNode *doc, HTMLPluginContainer *container
assert(!container->plugin_host); 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) if(!unk)
return E_FAIL; return E_FAIL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment