Commit 928914c8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IDispatchEx support to HTMLOptionElement.

parent 7582518e
......@@ -55,6 +55,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLDOMTextNode,
&DIID_DispHTMLElementCollection,
&DIID_DispHTMLInputElement,
&DIID_DispHTMLOptionElement,
&DIID_DispHTMLUnknownElement,
&DIID_DispHTMLWindow2,
&IID_IHTMLDocument2,
......@@ -68,6 +69,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLElement2,
&IID_IHTMLElementCollection,
&IID_IHTMLInputElement,
&IID_IHTMLOptionElement,
&IID_IHTMLWindow2,
&IID_IHTMLWindow3,
&IID_IOmNavigator
......
......@@ -331,6 +331,20 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = {
HTMLOptionElement_destructor
};
static dispex_static_data_t HTMLOptionElement_dispex = {
NULL,
DispHTMLOptionElement_tid,
NULL,
{
IHTMLDOMNode_tid,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLOptionElement_tid,
0
}
};
HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLOptionElement *ret = heap_alloc_zero(sizeof(HTMLOptionElement));
......@@ -345,6 +359,8 @@ HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
if(NS_FAILED(nsres))
ERR("Could not get nsIDOMHTMLOptionElement interface: %08x\n", nsres);
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLOPTION(ret), &HTMLOptionElement_dispex);
return &ret->element;
}
......
......@@ -65,6 +65,7 @@ typedef enum {
DispHTMLDOMTextNode_tid,
DispHTMLElementCollection_tid,
DispHTMLInputElement_tid,
DispHTMLOptionElement_tid,
DispHTMLUnknownElement_tid,
DispHTMLWindow2_tid,
IHTMLDocument2_tid,
......@@ -78,6 +79,7 @@ typedef enum {
IHTMLElement2_tid,
IHTMLElementCollection_tid,
IHTMLInputElement_tid,
IHTMLOptionElement_tid,
IHTMLWindow2_tid,
IHTMLWindow3_tid,
IOmNavigator_tid,
......
......@@ -221,10 +221,10 @@ static const elem_type_info_t elem_type_infos[] = {
{"TITLE", elem_iids, NULL},
{"BODY", body_iids, NULL},
{"A", anchor_iids, NULL},
{"INPUT", input_iids, NULL},
{"INPUT", input_iids, &DIID_DispHTMLInputElement},
{"SELECT", select_iids, NULL},
{"TEXTAREA", textarea_iids, NULL},
{"OPTION", option_iids, NULL},
{"OPTION", option_iids, &DIID_DispHTMLOptionElement},
{"STYLE", elem_iids, NULL},
{"BLOCKQUOTE",elem_iids, NULL},
{"P", elem_iids, NULL},
......
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