Commit 73a15436 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IDispatchEx support to HTMLObjectElement object.

parent 8d11858e
......@@ -101,6 +101,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLInputElement,
&DIID_DispHTMLLocation,
&DIID_DispHTMLNavigator,
&DIID_DispHTMLObjectElement,
&DIID_DispHTMLOptionElement,
&DIID_DispHTMLScreen,
&DIID_DispHTMLScriptElement,
......@@ -145,6 +146,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLImgElement,
&IID_IHTMLInputElement,
&IID_IHTMLLocation,
&IID_IHTMLObjectElement,
&IID_IHTMLOptionElement,
&IID_IHTMLRect,
&IID_IHTMLScreen,
......
......@@ -415,6 +415,18 @@ static const NodeImplVtbl HTMLObjectElementImplVtbl = {
HTMLObjectElement_destructor
};
static const tid_t HTMLObjectElement_iface_tids[] = {
HTMLELEMENT_TIDS,
IHTMLObjectElement_tid,
0
};
static dispex_static_data_t HTMLObjectElement_dispex = {
NULL,
DispHTMLObjectElement_tid,
NULL,
HTMLObjectElement_iface_tids
};
HTMLElement *HTMLObjectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
{
HTMLObjectElement *ret = heap_alloc_zero(sizeof(*ret));
......@@ -422,6 +434,6 @@ HTMLElement *HTMLObjectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *
ret->lpIHTMLObjectElementVtbl = &HTMLObjectElementVtbl;
ret->element.node.vtbl = &HTMLObjectElementImplVtbl;
HTMLElement_Init(&ret->element, doc, nselem, NULL);
HTMLElement_Init(&ret->element, doc, nselem, &HTMLObjectElement_dispex);
return &ret->element;
}
......@@ -83,6 +83,7 @@ typedef enum {
DispHTMLInputElement_tid,
DispHTMLLocation_tid,
DispHTMLNavigator_tid,
DispHTMLObjectElement_tid,
DispHTMLOptionElement_tid,
DispHTMLScreen_tid,
DispHTMLScriptElement_tid,
......@@ -127,6 +128,7 @@ typedef enum {
IHTMLImgElement_tid,
IHTMLInputElement_tid,
IHTMLLocation_tid,
IHTMLObjectElement_tid,
IHTMLOptionElement_tid,
IHTMLRect_tid,
IHTMLScreen_tid,
......
......@@ -435,7 +435,7 @@ static const elem_type_info_t elem_type_infos[] = {
{"IFRAME", iframe_iids, &DIID_DispHTMLIFrame},
{"FORM", form_iids, &DIID_DispHTMLFormElement},
{"FRAME", frame_iids, &DIID_DispHTMLFrameElement},
{"OBJECT", object_iids, NULL}
{"OBJECT", object_iids, &DIID_DispHTMLObjectElement}
};
static const char *dbgstr_guid(REFIID riid)
......
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