mshtml: Added IDispatchEx support to HTMLHeadElement object.

This commit is contained in:
Jacek Caban 2011-06-21 13:47:20 +02:00 committed by Alexandre Julliard
parent 74e95a13b3
commit 0912436e6e
3 changed files with 16 additions and 2 deletions

View File

@ -159,6 +159,18 @@ static const NodeImplVtbl HTMLHeadElementImplVtbl = {
HTMLElement_clone
};
static const tid_t HTMLHeadElement_iface_tids[] = {
HTMLELEMENT_TIDS,
IHTMLHeadElement_tid,
0
};
static dispex_static_data_t HTMLHeadElement_dispex = {
NULL,
DispHTMLHeadElement_tid,
NULL,
HTMLHeadElement_iface_tids
};
HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
{
HTMLHeadElement *ret;
@ -170,7 +182,7 @@ HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl;
ret->element.node.vtbl = &HTMLHeadElementImplVtbl;
HTMLElement_Init(&ret->element, doc, nselem, NULL);
HTMLElement_Init(&ret->element, doc, nselem, &HTMLHeadElement_dispex);
*elem = &ret->element;
return S_OK;

View File

@ -84,6 +84,7 @@ typedef struct event_target_t event_target_t;
XDIID(DispHTMLFormElement) \
XDIID(DispHTMLGenericElement) \
XDIID(DispHTMLFrameElement) \
XDIID(DispHTMLHeadElement) \
XDIID(DispHTMLIFrame) \
XDIID(DispHTMLImg) \
XDIID(DispHTMLInputElement) \
@ -133,6 +134,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLFrameBase2) \
XIID(IHTMLFrameElement3) \
XIID(IHTMLGenericElement) \
XIID(IHTMLHeadElement) \
XIID(IHTMLIFrameElement) \
XIID(IHTMLImageElementFactory) \
XIID(IHTMLImgElement) \

View File

@ -368,7 +368,7 @@ typedef struct {
static const elem_type_info_t elem_type_infos[] = {
{"", none_iids, NULL},
{"HTML", elem_iids, NULL},
{"HEAD", head_iids, NULL},
{"HEAD", head_iids, &DIID_DispHTMLHeadElement},
{"TITLE", elem_iids, NULL},
{"BODY", body_iids, &DIID_DispHTMLBody},
{"A", anchor_iids, &DIID_DispHTMLAnchorElement},