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