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

mshtml: Added IDispatchEx support to HTMLGenericElement.

parent d9cb62e3
......@@ -70,6 +70,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLDocument,
&DIID_DispHTMLDOMTextNode,
&DIID_DispHTMLElementCollection,
&DIID_DispHTMLGenericElement,
&DIID_DispHTMLImg,
&DIID_DispHTMLInputElement,
&DIID_DispHTMLOptionElement,
......@@ -89,6 +90,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLElement,
&IID_IHTMLElement2,
&IID_IHTMLElementCollection,
&IID_IHTMLGenericElement,
&IID_IHTMLImgElement,
&IID_IHTMLInputElement,
&IID_IHTMLOptionElement,
......
......@@ -157,6 +157,23 @@ static const NodeImplVtbl HTMLGenericElementImplVtbl = {
HTMLGenericElement_destructor
};
static const tid_t HTMLGenericElement_iface_tids[] = {
IHTMLDOMNode_tid,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement2_tid,
IHTMLGenericElement_tid,
0
};
static dispex_static_data_t HTMLGenericElement_dispex = {
NULL,
DispHTMLGenericElement_tid,
NULL,
HTMLGenericElement_iface_tids
};
HTMLElement *HTMLGenericElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLGenericElement *ret;
......@@ -166,6 +183,7 @@ HTMLElement *HTMLGenericElement_Create(nsIDOMHTMLElement *nselem)
ret->lpHTMLGenericElementVtbl = &HTMLGenericElementVtbl;
ret->element.node.vtbl = &HTMLGenericElementImplVtbl;
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLGENERIC(ret), &HTMLGenericElement_dispex);
HTMLElement_Init(&ret->element);
return &ret->element;
......
......@@ -66,6 +66,7 @@ typedef enum {
DispHTMLDocument_tid,
DispHTMLDOMTextNode_tid,
DispHTMLElementCollection_tid,
DispHTMLGenericElement_tid,
DispHTMLImg_tid,
DispHTMLInputElement_tid,
DispHTMLOptionElement_tid,
......@@ -85,6 +86,7 @@ typedef enum {
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElementCollection_tid,
IHTMLGenericElement_tid,
IHTMLImgElement_tid,
IHTMLInputElement_tid,
IHTMLOptionElement_tid,
......
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