Commit 7bf41fac authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added script element IDispatchEx support.

parent 100b7f58
...@@ -100,6 +100,7 @@ static REFIID tid_ids[] = { ...@@ -100,6 +100,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLNavigator, &DIID_DispHTMLNavigator,
&DIID_DispHTMLOptionElement, &DIID_DispHTMLOptionElement,
&DIID_DispHTMLScreen, &DIID_DispHTMLScreen,
&DIID_DispHTMLScriptElement,
&DIID_DispHTMLSelectElement, &DIID_DispHTMLSelectElement,
&DIID_DispHTMLStyle, &DIID_DispHTMLStyle,
&DIID_DispHTMLTable, &DIID_DispHTMLTable,
...@@ -142,6 +143,7 @@ static REFIID tid_ids[] = { ...@@ -142,6 +143,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLLocation, &IID_IHTMLLocation,
&IID_IHTMLOptionElement, &IID_IHTMLOptionElement,
&IID_IHTMLScreen, &IID_IHTMLScreen,
&IID_IHTMLScriptElement,
&IID_IHTMLSelectElement, &IID_IHTMLSelectElement,
&IID_IHTMLStyle, &IID_IHTMLStyle,
&IID_IHTMLStyle2, &IID_IHTMLStyle2,
......
...@@ -319,6 +319,19 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = { ...@@ -319,6 +319,19 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
HTMLScriptElement_get_readystate 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) HTMLElement *HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
{ {
HTMLScriptElement *ret = heap_alloc_zero(sizeof(HTMLScriptElement)); HTMLScriptElement *ret = heap_alloc_zero(sizeof(HTMLScriptElement));
...@@ -327,7 +340,7 @@ HTMLElement *HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement * ...@@ -327,7 +340,7 @@ HTMLElement *HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *
ret->lpHTMLScriptElementVtbl = &HTMLScriptElementVtbl; ret->lpHTMLScriptElementVtbl = &HTMLScriptElementVtbl;
ret->element.node.vtbl = &HTMLScriptElementImplVtbl; 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); nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLScriptElement, (void**)&ret->nsscript);
if(NS_FAILED(nsres)) if(NS_FAILED(nsres))
......
...@@ -76,6 +76,7 @@ typedef enum { ...@@ -76,6 +76,7 @@ typedef enum {
DispHTMLNavigator_tid, DispHTMLNavigator_tid,
DispHTMLOptionElement_tid, DispHTMLOptionElement_tid,
DispHTMLScreen_tid, DispHTMLScreen_tid,
DispHTMLScriptElement_tid,
DispHTMLSelectElement_tid, DispHTMLSelectElement_tid,
DispHTMLStyle_tid, DispHTMLStyle_tid,
DispHTMLTable_tid, DispHTMLTable_tid,
...@@ -118,6 +119,7 @@ typedef enum { ...@@ -118,6 +119,7 @@ typedef enum {
IHTMLLocation_tid, IHTMLLocation_tid,
IHTMLOptionElement_tid, IHTMLOptionElement_tid,
IHTMLScreen_tid, IHTMLScreen_tid,
IHTMLScriptElement_tid,
IHTMLSelectElement_tid, IHTMLSelectElement_tid,
IHTMLStyle_tid, IHTMLStyle_tid,
IHTMLStyle2_tid, IHTMLStyle2_tid,
......
...@@ -412,7 +412,7 @@ static const elem_type_info_t elem_type_infos[] = { ...@@ -412,7 +412,7 @@ static const elem_type_info_t elem_type_infos[] = {
{"BR", elem_iids, NULL}, {"BR", elem_iids, NULL},
{"TABLE", table_iids, &DIID_DispHTMLTable}, {"TABLE", table_iids, &DIID_DispHTMLTable},
{"TBODY", elem_iids, NULL}, {"TBODY", elem_iids, NULL},
{"SCRIPT", script_iids, NULL}, {"SCRIPT", script_iids, &DIID_DispHTMLScriptElement},
{"TEST", elem_iids, &DIID_DispHTMLUnknownElement}, {"TEST", elem_iids, &DIID_DispHTMLUnknownElement},
{"TEST", generic_iids, &DIID_DispHTMLGenericElement}, {"TEST", generic_iids, &DIID_DispHTMLGenericElement},
{"!", comment_iids, &DIID_DispHTMLCommentElement}, {"!", comment_iids, &DIID_DispHTMLCommentElement},
......
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