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 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) HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
{ {
HTMLHeadElement *ret; HTMLHeadElement *ret;
@ -170,7 +182,7 @@ HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl; ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl;
ret->element.node.vtbl = &HTMLHeadElementImplVtbl; ret->element.node.vtbl = &HTMLHeadElementImplVtbl;
HTMLElement_Init(&ret->element, doc, nselem, NULL); HTMLElement_Init(&ret->element, doc, nselem, &HTMLHeadElement_dispex);
*elem = &ret->element; *elem = &ret->element;
return S_OK; return S_OK;

View File

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

View File

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