31 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
38 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
45 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
51 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
58 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
67 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
68 cNames, lcid, rgDispId);
73 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
76 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
77 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
90 if(!
This->element.node.doc || !
This->element.node.doc->window) {
98 nsres = nsIDOMHTMLScriptElement_SetSrc(
This->nsscript, &src_str);
101 ERR(
"SetSrc failed: %08x\n", nsres);
106 WARN(
"already parsed\n");
110 if(
window->parser_callback_cnt) {
117 IHTMLScriptElement_AddRef(&
This->IHTMLScriptElement_iface);
124 nsres = nsIDOMHTMLElement_GetParentNode(
This->element.nselem, &
parent);
126 TRACE(
"No parent, not executing\n");
131 nsIDOMNode_Release(
parent);
145 nsres = nsIDOMHTMLScriptElement_GetSrc(
This->nsscript, &src_str);
187 if(!
This->element.node.doc || !
This->element.node.doc->window) {
188 WARN(
"no windoow\n");
195 nsres = nsIDOMHTMLScriptElement_SetText(
This->nsscript, &text_str);
198 ERR(
"SetSrc failed: %08x\n", nsres);
202 nsres = nsIDOMHTMLElement_GetParentNode(
This->element.nselem, &
parent);
204 TRACE(
"No parent, not executing\n");
209 nsIDOMNode_Release(
parent);
223 nsres = nsIDOMHTMLScriptElement_GetText(
This->nsscript, &nsstr);
235 nsres = nsIDOMHTMLScriptElement_SetDefer(
This->nsscript,
v != VARIANT_FALSE);
255 nsres = nsIDOMHTMLScriptElement_GetDefer(
This->nsscript, &defer);
257 ERR(
"GetSrc failed: %08x\n", nsres);
260 *
p = defer ? VARIANT_TRUE : VARIANT_FALSE;
302 nsres = nsIDOMHTMLScriptElement_SetType(
This->nsscript, &nstype_str);
304 ERR(
"SetType failed: %08x\n", nsres);
319 nsres = nsIDOMHTMLScriptElement_GetType(
This->nsscript, &nstype_str);
361 *
ppv = &
This->IHTMLScriptElement_iface;
364 *
ppv = &
This->IHTMLScriptElement_iface;
366 TRACE(
"(%p)->(IID_IHTMLScriptElement %p)\n",
This,
ppv);
367 *
ppv = &
This->IHTMLScriptElement_iface;
382 return IHTMLScriptElement_get_readyState(&
This->IHTMLScriptElement_iface,
p);
401 nsIDOMHTMLScriptElement_Release(nsscript);
432 nsres = nsIDOMHTMLScriptElement_QueryInterface(nsscript, &IID_nsIDOMNode, (
void**)&nsnode);
436 nsIDOMNode_Release(nsnode);
447 IHTMLScriptElement_tid,
453 DispHTMLScriptElement_tid,
472 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLScriptElement, (
void**)&
ret->nsscript);
static void * heap_alloc(size_t len)
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
void HTMLElement_destructor(HTMLDOMNode *iface)
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
const cpc_entry_t HTMLElement_cpc[]
HRESULT get_readystate_string(READYSTATE readystate, BSTR *p)
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
static const tid_t HTMLScriptElement_iface_tids[]
static HRESULT HTMLScriptElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLScriptElement_put_type(IHTMLScriptElement *iface, BSTR v)
static HRESULT WINAPI HTMLScriptElement_get_onerror(IHTMLScriptElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLScriptElement_put_event(IHTMLScriptElement *iface, BSTR v)
HRESULT script_elem_from_nsscript(HTMLDocumentNode *doc, nsIDOMHTMLScriptElement *nsscript, HTMLScriptElement **ret)
static HRESULT WINAPI HTMLScriptElement_put_text(IHTMLScriptElement *iface, BSTR v)
static ULONG WINAPI HTMLScriptElement_AddRef(IHTMLScriptElement *iface)
static void HTMLScriptElement_unlink(HTMLDOMNode *iface)
static HTMLScriptElement * impl_from_IHTMLScriptElement(IHTMLScriptElement *iface)
static const NodeImplVtbl HTMLScriptElementImplVtbl
static HRESULT WINAPI HTMLScriptElement_get_readyState(IHTMLScriptElement *iface, BSTR *p)
static HTMLScriptElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
static HRESULT WINAPI HTMLScriptElement_QueryInterface(IHTMLScriptElement *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLScriptElement_get_htmlFor(IHTMLScriptElement *iface, BSTR *p)
static HRESULT WINAPI HTMLScriptElement_put_defer(IHTMLScriptElement *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLScriptElement_GetTypeInfoCount(IHTMLScriptElement *iface, UINT *pctinfo)
static dispex_static_data_t HTMLScriptElement_dispex
HRESULT HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
static HRESULT WINAPI HTMLScriptElement_get_type(IHTMLScriptElement *iface, BSTR *p)
static HRESULT WINAPI HTMLScriptElement_get_src(IHTMLScriptElement *iface, BSTR *p)
static const IHTMLScriptElementVtbl HTMLScriptElementVtbl
static HRESULT HTMLScriptElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
static void HTMLScriptElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
static HRESULT WINAPI HTMLScriptElement_get_event(IHTMLScriptElement *iface, BSTR *p)
static HRESULT WINAPI HTMLScriptElement_get_text(IHTMLScriptElement *iface, BSTR *p)
static HRESULT WINAPI HTMLScriptElement_put_htmlFor(IHTMLScriptElement *iface, BSTR v)
static HRESULT WINAPI HTMLScriptElement_put_src(IHTMLScriptElement *iface, BSTR v)
static HRESULT WINAPI HTMLScriptElement_GetTypeInfo(IHTMLScriptElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLScriptElement_get_defer(IHTMLScriptElement *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLScriptElement_put_onerror(IHTMLScriptElement *iface, VARIANT v)
static ULONG WINAPI HTMLScriptElement_Release(IHTMLScriptElement *iface)
static HRESULT WINAPI HTMLScriptElement_Invoke(IHTMLScriptElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLScriptElement_GetIDsOfNames(IHTMLScriptElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
void doc_insert_script(HTMLInnerWindow *, HTMLScriptElement *) DECLSPEC_HIDDEN
static const char * debugstr_variant(const VARIANT *var)
static HMODULE MODULEINFO DWORD cb
static IHTMLWindow2 * window
static VARIANTARG static DISPID
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
#define IsEqualGUID(rguid1, rguid2)
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags