mshtml: Added IDispatchEx support for frame element.
This commit is contained in:
parent
a06ee80be0
commit
65d9ab1650
|
@ -92,6 +92,7 @@ static REFIID tid_ids[] = {
|
|||
&DIID_DispHTMLElementCollection,
|
||||
&DIID_DispHTMLFormElement,
|
||||
&DIID_DispHTMLGenericElement,
|
||||
&DIID_DispHTMLFrameElement,
|
||||
&DIID_DispHTMLIFrame,
|
||||
&DIID_DispHTMLImg,
|
||||
&DIID_DispHTMLInputElement,
|
||||
|
@ -133,6 +134,7 @@ static REFIID tid_ids[] = {
|
|||
&IID_IHTMLFrameBase,
|
||||
&IID_IHTMLFrameBase2,
|
||||
&IID_IHTMLGenericElement,
|
||||
&IID_IHTMLFrameElement3,
|
||||
&IID_IHTMLIFrameElement,
|
||||
&IID_IHTMLImageElementFactory,
|
||||
&IID_IHTMLImgElement,
|
||||
|
|
|
@ -269,6 +269,25 @@ static const NodeImplVtbl HTMLFrameElementImplVtbl = {
|
|||
HTMLFrameElement_bind_to_tree
|
||||
};
|
||||
|
||||
static const tid_t HTMLFrameElement_iface_tids[] = {
|
||||
IHTMLDOMNode_tid,
|
||||
IHTMLDOMNode2_tid,
|
||||
IHTMLElement_tid,
|
||||
IHTMLElement2_tid,
|
||||
IHTMLElement3_tid,
|
||||
IHTMLFrameBase_tid,
|
||||
IHTMLFrameBase2_tid,
|
||||
IHTMLFrameElement3_tid,
|
||||
0
|
||||
};
|
||||
|
||||
static dispex_static_data_t HTMLFrameElement_dispex = {
|
||||
NULL,
|
||||
DispHTMLFrameElement_tid,
|
||||
NULL,
|
||||
HTMLFrameElement_iface_tids
|
||||
};
|
||||
|
||||
HTMLElement *HTMLFrameElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
|
||||
{
|
||||
HTMLFrameElement *ret;
|
||||
|
@ -278,7 +297,7 @@ HTMLElement *HTMLFrameElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *n
|
|||
ret->framebase.element.node.vtbl = &HTMLFrameElementImplVtbl;
|
||||
ret->lpIHTMLFrameElement3Vtbl = &HTMLFrameElement3Vtbl;
|
||||
|
||||
HTMLFrameBase_Init(&ret->framebase, doc, nselem, NULL);
|
||||
HTMLFrameBase_Init(&ret->framebase, doc, nselem, &HTMLFrameElement_dispex);
|
||||
|
||||
return &ret->framebase.element;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,7 @@ typedef enum {
|
|||
DispHTMLElementCollection_tid,
|
||||
DispHTMLFormElement_tid,
|
||||
DispHTMLGenericElement_tid,
|
||||
DispHTMLFrameElement_tid,
|
||||
DispHTMLIFrame_tid,
|
||||
DispHTMLImg_tid,
|
||||
DispHTMLInputElement_tid,
|
||||
|
@ -108,6 +109,7 @@ typedef enum {
|
|||
IHTMLFormElement_tid,
|
||||
IHTMLFrameBase_tid,
|
||||
IHTMLFrameBase2_tid,
|
||||
IHTMLFrameElement3_tid,
|
||||
IHTMLGenericElement_tid,
|
||||
IHTMLIFrameElement_tid,
|
||||
IHTMLImageElementFactory_tid,
|
||||
|
|
|
@ -421,7 +421,7 @@ static const elem_type_info_t elem_type_infos[] = {
|
|||
{"TD", td_iids, NULL},
|
||||
{"IFRAME", iframe_iids, &DIID_DispHTMLIFrame},
|
||||
{"FORM", form_iids, &DIID_DispHTMLFormElement},
|
||||
{"FRAME", frame_iids, NULL}
|
||||
{"FRAME", frame_iids, &DIID_DispHTMLFrameElement}
|
||||
};
|
||||
|
||||
static const char *dbgstr_guid(REFIID riid)
|
||||
|
|
Loading…
Reference in New Issue