mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 09:00:55 +00:00
mshtml: Added IDispatchEx support to HTMLTitleElement object.
This commit is contained in:
parent
ff7e041716
commit
0227bf69a9
3 changed files with 16 additions and 2 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue