Commit 0227bf69 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IDispatchEx support to HTMLTitleElement object.

parent ff7e0417
...@@ -158,6 +158,18 @@ static const NodeImplVtbl HTMLTitleElementImplVtbl = { ...@@ -158,6 +158,18 @@ static const NodeImplVtbl HTMLTitleElementImplVtbl = {
HTMLElement_clone, HTMLElement_clone,
}; };
static const tid_t HTMLTitleElement_iface_tids[] = {
HTMLELEMENT_TIDS,
IHTMLTitleElement_tid,
0
};
static dispex_static_data_t HTMLTitleElement_dispex = {
NULL,
DispHTMLTitleElement_tid,
NULL,
HTMLTitleElement_iface_tids
};
HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem) HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
{ {
HTMLTitleElement *ret; HTMLTitleElement *ret;
...@@ -169,7 +181,7 @@ HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem ...@@ -169,7 +181,7 @@ HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem
ret->IHTMLTitleElement_iface.lpVtbl = &HTMLTitleElementVtbl; ret->IHTMLTitleElement_iface.lpVtbl = &HTMLTitleElementVtbl;
ret->element.node.vtbl = &HTMLTitleElementImplVtbl; ret->element.node.vtbl = &HTMLTitleElementImplVtbl;
HTMLElement_Init(&ret->element, doc, nselem, NULL); HTMLElement_Init(&ret->element, doc, nselem, &HTMLTitleElement_dispex);
*elem = &ret->element; *elem = &ret->element;
return S_OK; return S_OK;
......
...@@ -101,6 +101,7 @@ typedef struct event_target_t event_target_t; ...@@ -101,6 +101,7 @@ typedef struct event_target_t event_target_t;
XDIID(DispHTMLTable) \ XDIID(DispHTMLTable) \
XDIID(DispHTMLTableRow) \ XDIID(DispHTMLTableRow) \
XDIID(DispHTMLTextAreaElement) \ XDIID(DispHTMLTextAreaElement) \
XDIID(DispHTMLTitleElement) \
XDIID(DispHTMLUnknownElement) \ XDIID(DispHTMLUnknownElement) \
XDIID(DispHTMLWindow2) \ XDIID(DispHTMLWindow2) \
XDIID(HTMLDocumentEvents) \ XDIID(HTMLDocumentEvents) \
...@@ -158,6 +159,7 @@ typedef struct event_target_t event_target_t; ...@@ -158,6 +159,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLTableRow) \ XIID(IHTMLTableRow) \
XIID(IHTMLTextAreaElement) \ XIID(IHTMLTextAreaElement) \
XIID(IHTMLTextContainer) \ XIID(IHTMLTextContainer) \
XIID(IHTMLTitleElement) \
XIID(IHTMLUniqueName) \ XIID(IHTMLUniqueName) \
XIID(IHTMLWindow2) \ XIID(IHTMLWindow2) \
XIID(IHTMLWindow3) \ XIID(IHTMLWindow3) \
......
...@@ -376,7 +376,7 @@ static const elem_type_info_t elem_type_infos[] = { ...@@ -376,7 +376,7 @@ 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, &DIID_DispHTMLHeadElement}, {"HEAD", head_iids, &DIID_DispHTMLHeadElement},
{"TITLE", title_iids, NULL}, {"TITLE", title_iids, &DIID_DispHTMLTitleElement},
{"BODY", body_iids, &DIID_DispHTMLBody}, {"BODY", body_iids, &DIID_DispHTMLBody},
{"A", anchor_iids, &DIID_DispHTMLAnchorElement}, {"A", anchor_iids, &DIID_DispHTMLAnchorElement},
{"INPUT", input_iids, &DIID_DispHTMLInputElement}, {"INPUT", input_iids, &DIID_DispHTMLInputElement},
......
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