mshtml: Added script element IDispatchEx support.
This commit is contained in:
parent
100b7f580f
commit
7bf41fac63
|
@ -100,6 +100,7 @@ static REFIID tid_ids[] = {
|
|||
&DIID_DispHTMLNavigator,
|
||||
&DIID_DispHTMLOptionElement,
|
||||
&DIID_DispHTMLScreen,
|
||||
&DIID_DispHTMLScriptElement,
|
||||
&DIID_DispHTMLSelectElement,
|
||||
&DIID_DispHTMLStyle,
|
||||
&DIID_DispHTMLTable,
|
||||
|
@ -142,6 +143,7 @@ static REFIID tid_ids[] = {
|
|||
&IID_IHTMLLocation,
|
||||
&IID_IHTMLOptionElement,
|
||||
&IID_IHTMLScreen,
|
||||
&IID_IHTMLScriptElement,
|
||||
&IID_IHTMLSelectElement,
|
||||
&IID_IHTMLStyle,
|
||||
&IID_IHTMLStyle2,
|
||||
|
|
|
@ -319,6 +319,19 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
|
|||
HTMLScriptElement_get_readystate
|
||||
};
|
||||
|
||||
static const tid_t HTMLScriptElement_iface_tids[] = {
|
||||
HTMLELEMENT_TIDS,
|
||||
IHTMLScriptElement_tid,
|
||||
0
|
||||
};
|
||||
|
||||
static dispex_static_data_t HTMLScriptElement_dispex = {
|
||||
NULL,
|
||||
DispHTMLScriptElement_tid,
|
||||
NULL,
|
||||
HTMLScriptElement_iface_tids
|
||||
};
|
||||
|
||||
HTMLElement *HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
|
||||
{
|
||||
HTMLScriptElement *ret = heap_alloc_zero(sizeof(HTMLScriptElement));
|
||||
|
@ -327,7 +340,7 @@ HTMLElement *HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *
|
|||
ret->lpHTMLScriptElementVtbl = &HTMLScriptElementVtbl;
|
||||
ret->element.node.vtbl = &HTMLScriptElementImplVtbl;
|
||||
|
||||
HTMLElement_Init(&ret->element, doc, nselem, NULL);
|
||||
HTMLElement_Init(&ret->element, doc, nselem, &HTMLScriptElement_dispex);
|
||||
|
||||
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLScriptElement, (void**)&ret->nsscript);
|
||||
if(NS_FAILED(nsres))
|
||||
|
|
|
@ -76,6 +76,7 @@ typedef enum {
|
|||
DispHTMLNavigator_tid,
|
||||
DispHTMLOptionElement_tid,
|
||||
DispHTMLScreen_tid,
|
||||
DispHTMLScriptElement_tid,
|
||||
DispHTMLSelectElement_tid,
|
||||
DispHTMLStyle_tid,
|
||||
DispHTMLTable_tid,
|
||||
|
@ -118,6 +119,7 @@ typedef enum {
|
|||
IHTMLLocation_tid,
|
||||
IHTMLOptionElement_tid,
|
||||
IHTMLScreen_tid,
|
||||
IHTMLScriptElement_tid,
|
||||
IHTMLSelectElement_tid,
|
||||
IHTMLStyle_tid,
|
||||
IHTMLStyle2_tid,
|
||||
|
|
|
@ -412,7 +412,7 @@ static const elem_type_info_t elem_type_infos[] = {
|
|||
{"BR", elem_iids, NULL},
|
||||
{"TABLE", table_iids, &DIID_DispHTMLTable},
|
||||
{"TBODY", elem_iids, NULL},
|
||||
{"SCRIPT", script_iids, NULL},
|
||||
{"SCRIPT", script_iids, &DIID_DispHTMLScriptElement},
|
||||
{"TEST", elem_iids, &DIID_DispHTMLUnknownElement},
|
||||
{"TEST", generic_iids, &DIID_DispHTMLGenericElement},
|
||||
{"!", comment_iids, &DIID_DispHTMLCommentElement},
|
||||
|
|
Loading…
Reference in New Issue