Module: wine Branch: master Commit: 5bc2d76b8c5a441d8bc180a3c3f05b07878763f6 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5bc2d76b8c5a441d8bc180a3c...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Feb 12 01:28:19 2018 +0100
mshtml: Pass element as nsIDOMElement to create_param_prop_bag.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mshtml/pluginhost.c | 2 +- dlls/mshtml/pluginhost.h | 2 +- dlls/mshtml/propbag.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index 338c77f..8a8b0aa 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -132,7 +132,7 @@ static void load_prop_bag(PluginHost *host, IPersistPropertyBag *persist_prop_ba IPropertyBag *prop_bag; HRESULT hres;
- hres = create_param_prop_bag(host->element->element.nselem, &prop_bag); + hres = create_param_prop_bag(host->element->element.dom_element, &prop_bag); if(FAILED(hres)) return;
diff --git a/dlls/mshtml/pluginhost.h b/dlls/mshtml/pluginhost.h index 5135c33..bea04d1 100644 --- a/dlls/mshtml/pluginhost.h +++ b/dlls/mshtml/pluginhost.h @@ -66,7 +66,7 @@ HRESULT create_plugin_host(HTMLDocumentNode*,HTMLPluginContainer*) DECLSPEC_HIDD void update_plugin_window(PluginHost*,HWND,const RECT*) DECLSPEC_HIDDEN; void detach_plugin_host(PluginHost*) DECLSPEC_HIDDEN;
-HRESULT create_param_prop_bag(nsIDOMHTMLElement*,IPropertyBag**) DECLSPEC_HIDDEN; +HRESULT create_param_prop_bag(nsIDOMElement*,IPropertyBag**) DECLSPEC_HIDDEN;
HRESULT create_ip_window(IOleInPlaceUIWindow**) DECLSPEC_HIDDEN; HRESULT create_ip_frame(IOleInPlaceFrame**) DECLSPEC_HIDDEN; diff --git a/dlls/mshtml/propbag.c b/dlls/mshtml/propbag.c index 395ffca..09e3dd8 100644 --- a/dlls/mshtml/propbag.c +++ b/dlls/mshtml/propbag.c @@ -268,7 +268,7 @@ static const IPropertyBag2Vtbl PropertyBag2Vtbl = { PropertyBag2_LoadObject };
-static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) +static HRESULT fill_props(nsIDOMElement *nselem, PropertyBag *prop_bag) { const PRUnichar *name, *value; nsAString name_str, value_str; @@ -284,7 +284,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) static const PRUnichar valueW[] = {'v','a','l','u','e',0};
nsAString_InitDepend(&name_str, paramW); - nsres = nsIDOMHTMLElement_GetElementsByTagName(nselem, &name_str, ¶ms); + nsres = nsIDOMElement_GetElementsByTagName(nselem, &name_str, ¶ms); nsAString_Finish(&name_str); if(NS_FAILED(nsres)) return E_FAIL; @@ -331,7 +331,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) return hres; }
-HRESULT create_param_prop_bag(nsIDOMHTMLElement *nselem, IPropertyBag **ret) +HRESULT create_param_prop_bag(nsIDOMElement *nselem, IPropertyBag **ret) { PropertyBag *prop_bag; HRESULT hres;