mshtml: Added IDispatchEx support for HTMLIFrame.
This commit is contained in:
parent
2e52c61c4c
commit
712c4d9af2
|
@ -73,6 +73,7 @@ static REFIID tid_ids[] = {
|
|||
&DIID_DispHTMLDOMTextNode,
|
||||
&DIID_DispHTMLElementCollection,
|
||||
&DIID_DispHTMLGenericElement,
|
||||
&DIID_DispHTMLIFrame,
|
||||
&DIID_DispHTMLImg,
|
||||
&DIID_DispHTMLInputElement,
|
||||
&DIID_DispHTMLOptionElement,
|
||||
|
@ -99,6 +100,7 @@ static REFIID tid_ids[] = {
|
|||
&IID_IHTMLElement3,
|
||||
&IID_IHTMLElement4,
|
||||
&IID_IHTMLElementCollection,
|
||||
&IID_IHTMLFrameBase2,
|
||||
&IID_IHTMLGenericElement,
|
||||
&IID_IHTMLImgElement,
|
||||
&IID_IHTMLInputElement,
|
||||
|
|
|
@ -209,6 +209,23 @@ static const NodeImplVtbl HTMLIFrameImplVtbl = {
|
|||
HTMLIFrame_destructor
|
||||
};
|
||||
|
||||
static const tid_t HTMLIFrame_iface_tids[] = {
|
||||
IHTMLDOMNode_tid,
|
||||
IHTMLDOMNode2_tid,
|
||||
IHTMLElement_tid,
|
||||
IHTMLElement2_tid,
|
||||
IHTMLElement3_tid,
|
||||
IHTMLFrameBase2_tid,
|
||||
0
|
||||
};
|
||||
|
||||
static dispex_static_data_t HTMLIFrame_dispex = {
|
||||
NULL,
|
||||
DispHTMLIFrame_tid,
|
||||
NULL,
|
||||
HTMLIFrame_iface_tids
|
||||
};
|
||||
|
||||
HTMLElement *HTMLIFrame_Create(nsIDOMHTMLElement *nselem)
|
||||
{
|
||||
HTMLIFrame *ret;
|
||||
|
@ -219,6 +236,7 @@ HTMLElement *HTMLIFrame_Create(nsIDOMHTMLElement *nselem)
|
|||
ret->lpIHTMLFrameBase2Vtbl = &HTMLIFrameBase2Vtbl;
|
||||
ret->element.node.vtbl = &HTMLIFrameImplVtbl;
|
||||
|
||||
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLFRAMEBASE2(ret), &HTMLIFrame_dispex);
|
||||
HTMLElement_Init(&ret->element);
|
||||
|
||||
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLIFrameElement, (void**)&ret->nsiframe);
|
||||
|
|
|
@ -69,6 +69,7 @@ typedef enum {
|
|||
DispHTMLDOMTextNode_tid,
|
||||
DispHTMLElementCollection_tid,
|
||||
DispHTMLGenericElement_tid,
|
||||
DispHTMLIFrame_tid,
|
||||
DispHTMLImg_tid,
|
||||
DispHTMLInputElement_tid,
|
||||
DispHTMLOptionElement_tid,
|
||||
|
@ -95,6 +96,7 @@ typedef enum {
|
|||
IHTMLElement3_tid,
|
||||
IHTMLElement4_tid,
|
||||
IHTMLElementCollection_tid,
|
||||
IHTMLFrameBase2_tid,
|
||||
IHTMLGenericElement_tid,
|
||||
IHTMLImgElement_tid,
|
||||
IHTMLInputElement_tid,
|
||||
|
|
|
@ -344,7 +344,7 @@ static const elem_type_info_t elem_type_infos[] = {
|
|||
{"IMG", img_iids, &DIID_DispHTMLImg},
|
||||
{"TR", tr_iids, &DIID_DispHTMLTableRow},
|
||||
{"TD", td_iids, NULL},
|
||||
{"IFRAME", iframe_iids, NULL}
|
||||
{"IFRAME", iframe_iids, &DIID_DispHTMLIFrame}
|
||||
};
|
||||
|
||||
static const char *dbgstr_w(LPCWSTR str)
|
||||
|
|
Loading…
Reference in New Issue