38 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
45 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
52 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
58 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
65 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
74 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
75 cNames, lcid, rgDispId);
80 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
83 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
84 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
94 nsres = nsIDOMHTMLImageElement_SetIsMap(
This->nsimg,
v != VARIANT_FALSE);
96 ERR(
"Set IsMap failed: %08x\n", nsres);
114 nsres = nsIDOMHTMLImageElement_GetIsMap(
This->nsimg, &
b);
116 ERR(
"Get IsMap failed: %08x\n", nsres);
119 *
p =
b ? VARIANT_TRUE : VARIANT_FALSE;
244 nsres = nsIDOMHTMLImageElement_SetAlt(
This->nsimg, &alt_str);
247 ERR(
"SetAlt failed: %08x\n", nsres);
261 nsres = nsIDOMHTMLImageElement_GetAlt(
This->nsimg, &alt_str);
274 nsres = nsIDOMHTMLImageElement_SetSrc(
This->nsimg, &src_str);
277 ERR(
"SetSrc failed: %08x\n", nsres);
290 static const WCHAR blockedW[] = {
'B',
'L',
'O',
'C',
'K',
'E',
'D',
':',
':',0};
295 nsres = nsIDOMHTMLImageElement_GetSrc(
This->nsimg, &src_str);
300 TRACE(
"returning BLOCKED::\n");
308 ERR(
"GetSrc failed: %08x\n", nsres);
373 nsres = nsIDOMHTMLImageElement_GetComplete(
This->nsimg, &
complete);
375 ERR(
"GetComplete failed: %08x\n", nsres);
379 *
p =
complete ? VARIANT_TRUE : VARIANT_FALSE;
407 nsres = nsIDOMHTMLImageElement_SetAlign(
This->nsimg, &
str);
426 nsres = nsIDOMHTMLImageElement_GetAlign(
This->nsimg, &
str);
501 nsres = nsIDOMHTMLImageElement_GetName(
This->nsimg, &
name);
512 nsres = nsIDOMHTMLImageElement_SetWidth(
This->nsimg,
v);
514 ERR(
"SetWidth failed: %08x\n", nsres);
529 nsres = nsIDOMHTMLImageElement_GetWidth(
This->nsimg, &
width);
531 ERR(
"GetWidth failed: %08x\n", nsres);
546 nsres = nsIDOMHTMLImageElement_SetHeight(
This->nsimg,
v);
548 ERR(
"SetHeight failed: %08x\n", nsres);
563 nsres = nsIDOMHTMLImageElement_GetHeight(
This->nsimg, &
height);
565 ERR(
"GetHeight failed: %08x\n", nsres);
658 *
ppv = &
This->IHTMLImgElement_iface;
671 return IHTMLImgElement_get_readyState(&
This->IHTMLImgElement_iface,
p);
690 nsIDOMHTMLImageElement_Release(nsimg);
740 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLImageElement, (
void**)&
ret->nsimg);
760 *
ppv = &
This->IHTMLImageElementFactory_iface;
762 *
ppv = &
This->IHTMLImageElementFactory_iface;
802 return IDispatchEx_GetTypeInfoCount(&
This->dispex.IDispatchEx_iface, pctinfo);
809 return IDispatchEx_GetTypeInfo(&
This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
817 return IDispatchEx_GetIDsOfNames(&
This->dispex.IDispatchEx_iface,
riid, rgszNames, cNames, lcid, rgDispId);
822 DISPPARAMS *pDispParams,
VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
826 return IDispatchEx_Invoke(&
This->dispex.IDispatchEx_iface, dispIdMember,
riid, lcid,
wFlags,
827 pDispParams, pVarResult, pExcepInfo, puArgErr);
843 FIXME(
"VarI4FromStr failed: %08x\n",
hres);
859 IHTMLImgElement *
img;
870 if(!
This->window || !
This->window->doc) {
875 doc =
This->window->doc;
884 nsIDOMHTMLElement_Release(nselem);
886 ERR(
"HTMLElement_Create failed\n");
890 hres = IHTMLElement_QueryInterface(&
elem->IHTMLElement_iface, &IID_IHTMLImgElement,
892 IHTMLElement_Release(&
elem->IHTMLElement_iface);
894 ERR(
"IHTMLElement_QueryInterface failed: 0x%08x\n",
hres);
900 IHTMLImgElement_put_width(
img,
l);
903 IHTMLImgElement_put_height(
img,
l);
930 IHTMLImgElement *
img;
942 hres = IHTMLImageElementFactory_create(&
This->IHTMLImageElementFactory_iface, *
width, *
height,
954 IHTMLImageElementFactory_tid,
967 IHTMLImageElementFactory_tid,
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
static const WCHAR empty[]
const char * debugstr_mshtml_guid(const GUID *iid)
HRESULT WINAPI VarI4FromStr(OLECHAR *strIn, LCID lcid, ULONG dwFlags, LONG *piOut)
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLboolean GLboolean GLboolean b
GLenum const GLfloat * params
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_generic, HTMLElement **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[]
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
static const WCHAR imgW[]
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT WINAPI HTMLImgElement_get_fileSize(IHTMLImgElement *iface, BSTR *p)
static ULONG WINAPI HTMLImageElementFactory_AddRef(IHTMLImageElementFactory *iface)
static HRESULT WINAPI HTMLImgElement_get_vrml(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_width(IHTMLImgElement *iface, LONG *p)
static HRESULT WINAPI HTMLImgElement_get_href(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_put_dynsrc(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_put_start(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_put_height(IHTMLImgElement *iface, LONG v)
static HRESULT WINAPI HTMLImgElement_put_vspace(IHTMLImgElement *iface, LONG v)
static HRESULT WINAPI HTMLImgElement_put_align(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_GetTypeInfo(IHTMLImgElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLImgElement_put_vrml(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_GetIDsOfNames(IHTMLImgElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLImgElement_Invoke(IHTMLImgElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLImgElement_get_align(IHTMLImgElement *iface, BSTR *p)
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
static void HTMLImgElement_unlink(HTMLDOMNode *iface)
static void HTMLImgElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
static ULONG WINAPI HTMLImgElement_AddRef(IHTMLImgElement *iface)
static HRESULT WINAPI HTMLImgElement_put_lowsrc(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_GetTypeInfoCount(IHTMLImgElement *iface, UINT *pctinfo)
static const IHTMLImgElementVtbl HTMLImgElementVtbl
static HRESULT WINAPI HTMLImgElement_get_dynsrc(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_useMap(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_onload(IHTMLImgElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLImgElement_get_fileUpdatedDate(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_lowsrc(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_hspace(IHTMLImgElement *iface, LONG *p)
static HRESULT WINAPI HTMLImgElement_get_mimeType(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_readyState(IHTMLImgElement *iface, BSTR *p)
static dispex_static_data_t HTMLImageElementFactory_dispex
static HRESULT WINAPI HTMLImgElement_put_width(IHTMLImgElement *iface, LONG v)
static dispex_static_data_t HTMLImgElement_dispex
static HRESULT WINAPI HTMLImgElement_put_onerror(IHTMLImgElement *iface, VARIANT v)
static HRESULT WINAPI HTMLImgElement_QueryInterface(IHTMLImgElement *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLImgElement_get_onabort(IHTMLImgElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLImgElement_get_fileCreatedDate(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo(IHTMLImageElementFactory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLImgElement_get_protocol(IHTMLImgElement *iface, BSTR *p)
HRESULT HTMLImgElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
static const NodeImplVtbl HTMLImgElementImplVtbl
static HRESULT WINAPI HTMLImgElement_get_start(IHTMLImgElement *iface, BSTR *p)
HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow *window, HTMLImageElementFactory **ret_val)
static HTMLImageElementFactory * impl_from_DispatchEx(DispatchEx *iface)
static const tid_t HTMLImgElement_iface_tids[]
static HRESULT WINAPI HTMLImgElement_put_border(IHTMLImgElement *iface, VARIANT v)
static HRESULT WINAPI HTMLImgElement_put_loop(IHTMLImgElement *iface, VARIANT v)
static ULONG WINAPI HTMLImageElementFactory_Release(IHTMLImageElementFactory *iface)
static HRESULT WINAPI HTMLImgElement_put_src(IHTMLImgElement *iface, BSTR v)
static HRESULT HTMLImgElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLImgElement_put_hspace(IHTMLImgElement *iface, LONG v)
static HRESULT WINAPI HTMLImgElement_get_height(IHTMLImgElement *iface, LONG *p)
static LONG var_to_size(const VARIANT *v)
static HRESULT WINAPI HTMLImgElement_put_alt(IHTMLImgElement *iface, BSTR v)
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
static HRESULT WINAPI HTMLImageElementFactory_Invoke(IHTMLImageElementFactory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLImgElement_get_fileModifiedDate(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_alt(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_onerror(IHTMLImgElement *iface, VARIANT *p)
static HRESULT HTMLImgElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
static HRESULT WINAPI HTMLImgElement_put_onload(IHTMLImgElement *iface, VARIANT v)
static HRESULT WINAPI HTMLImgElement_get_isMap(IHTMLImgElement *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLImgElement_put_onabort(IHTMLImgElement *iface, VARIANT v)
static const tid_t HTMLImageElementFactory_iface_tids[]
static HRESULT WINAPI HTMLImgElement_put_name(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_put_useMap(IHTMLImgElement *iface, BSTR v)
static HRESULT WINAPI HTMLImgElement_get_loop(IHTMLImgElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLImageElementFactory_create(IHTMLImageElementFactory *iface, VARIANT width, VARIANT height, IHTMLImgElement **img_elem)
static HRESULT HTMLImageElementFactory_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
static const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
static HRESULT WINAPI HTMLImgElement_get_complete(IHTMLImgElement *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLImageElementFactory_QueryInterface(IHTMLImageElementFactory *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames(IHTMLImageElementFactory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLImgElement_put_isMap(IHTMLImgElement *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLImgElement_get_nameProp(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_border(IHTMLImgElement *iface, VARIANT *p)
static ULONG WINAPI HTMLImgElement_Release(IHTMLImgElement *iface)
static HRESULT WINAPI HTMLImgElement_get_vspace(IHTMLImgElement *iface, LONG *p)
static HRESULT WINAPI HTMLImgElement_get_name(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImgElement_get_src(IHTMLImgElement *iface, BSTR *p)
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount(IHTMLImageElementFactory *iface, UINT *pctinfo)
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
static const char * debugstr_variant(const VARIANT *var)
static HMODULE MODULEINFO DWORD cb
static IHTMLWindow2 * window
static VARIANTARG static DISPID
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
HRESULT nsuri_to_url(LPCWSTR, BOOL, BSTR *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
#define NS_SUCCEEDED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
BSTR WINAPI SysAllocString(LPCOLESTR str)
#define IsEqualGUID(rguid1, rguid2)
#define strncmpiW(s1, s2, n)
IHTMLImgElement IHTMLImgElement_iface
nsIDOMHTMLImageElement * nsimg
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags