ReactOS  0.4.14-dev-337-gf981a68
htmlimg.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlimg.c:

Go to the source code of this file.

Classes

struct  HTMLImgElement
 

Functions

static HTMLImgElementimpl_from_IHTMLImgElement (IHTMLImgElement *iface)
 
static HRESULT WINAPI HTMLImgElement_QueryInterface (IHTMLImgElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLImgElement_AddRef (IHTMLImgElement *iface)
 
static ULONG WINAPI HTMLImgElement_Release (IHTMLImgElement *iface)
 
static HRESULT WINAPI HTMLImgElement_GetTypeInfoCount (IHTMLImgElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLImgElement_GetTypeInfo (IHTMLImgElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
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_put_isMap (IHTMLImgElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLImgElement_get_isMap (IHTMLImgElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLImgElement_put_useMap (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_useMap (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_mimeType (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileSize (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileCreatedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileModifiedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_fileUpdatedDate (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_protocol (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_href (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_nameProp (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_border (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_border (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_vspace (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_vspace (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_hspace (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_hspace (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_alt (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_alt (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_src (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_src (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_lowsrc (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_lowsrc (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_vrml (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_vrml (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_dynsrc (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_dynsrc (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_readyState (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_get_complete (IHTMLImgElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLImgElement_put_loop (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_loop (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_align (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_align (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_onload (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onload (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_onerror (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onerror (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_onabort (IHTMLImgElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLImgElement_get_onabort (IHTMLImgElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLImgElement_put_name (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_name (IHTMLImgElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLImgElement_put_width (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_width (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_height (IHTMLImgElement *iface, LONG v)
 
static HRESULT WINAPI HTMLImgElement_get_height (IHTMLImgElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLImgElement_put_start (IHTMLImgElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLImgElement_get_start (IHTMLImgElement *iface, BSTR *p)
 
static HTMLImgElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLImgElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLImgElement_get_readystate (HTMLDOMNode *iface, BSTR *p)
 
static void HTMLImgElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLImgElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLImgElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 
static HTMLImageElementFactoryimpl_from_IHTMLImageElementFactory (IHTMLImageElementFactory *iface)
 
static HRESULT WINAPI HTMLImageElementFactory_QueryInterface (IHTMLImageElementFactory *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLImageElementFactory_AddRef (IHTMLImageElementFactory *iface)
 
static ULONG WINAPI HTMLImageElementFactory_Release (IHTMLImageElementFactory *iface)
 
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount (IHTMLImageElementFactory *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo (IHTMLImageElementFactory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames (IHTMLImageElementFactory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLImageElementFactory_Invoke (IHTMLImageElementFactory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static LONG var_to_size (const VARIANT *v)
 
static HRESULT WINAPI HTMLImageElementFactory_create (IHTMLImageElementFactory *iface, VARIANT width, VARIANT height, IHTMLImgElement **img_elem)
 
static HTMLImageElementFactoryimpl_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLImageElementFactory_value (DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
HRESULT HTMLImageElementFactory_Create (HTMLInnerWindow *window, HTMLImageElementFactory **ret_val)
 

Variables

static const IHTMLImgElementVtbl HTMLImgElementVtbl
 
static const NodeImplVtbl HTMLImgElementImplVtbl
 
static const tid_t HTMLImgElement_iface_tids []
 
static dispex_static_data_t HTMLImgElement_dispex
 
static const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
 
static const tid_t HTMLImageElementFactory_iface_tids []
 
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
 
static dispex_static_data_t HTMLImageElementFactory_dispex
 

Function Documentation

◆ HTMLImageElementFactory_AddRef()

static ULONG WINAPI HTMLImageElementFactory_AddRef ( IHTMLImageElementFactory *  iface)
static

Definition at line 775 of file htmlimg.c.

776 {
779 
780  TRACE("(%p) ref=%d\n", This, ref);
781 
782  return ref;
783 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLImageElementFactory_create()

static HRESULT WINAPI HTMLImageElementFactory_create ( IHTMLImageElementFactory *  iface,
VARIANT  width,
VARIANT  height,
IHTMLImgElement **  img_elem 
)
static

Definition at line 854 of file htmlimg.c.

856 {
858  HTMLDocumentNode *doc;
859  IHTMLImgElement *img;
860  HTMLElement *elem;
861  nsIDOMHTMLElement *nselem;
862  LONG l;
863  HRESULT hres;
864 
865  static const PRUnichar imgW[] = {'I','M','G',0};
866 
867  TRACE("(%p)->(%s %s %p)\n", This, debugstr_variant(&width),
868  debugstr_variant(&height), img_elem);
869 
870  if(!This->window || !This->window->doc) {
871  WARN("NULL doc\n");
872  return E_UNEXPECTED;
873  }
874 
875  doc = This->window->doc;
876 
877  *img_elem = NULL;
878 
879  hres = create_nselem(doc, imgW, &nselem);
880  if(FAILED(hres))
881  return hres;
882 
883  hres = HTMLElement_Create(doc, (nsIDOMNode*)nselem, FALSE, &elem);
884  nsIDOMHTMLElement_Release(nselem);
885  if(FAILED(hres)) {
886  ERR("HTMLElement_Create failed\n");
887  return hres;
888  }
889 
890  hres = IHTMLElement_QueryInterface(&elem->IHTMLElement_iface, &IID_IHTMLImgElement,
891  (void**)&img);
892  IHTMLElement_Release(&elem->IHTMLElement_iface);
893  if(FAILED(hres)) {
894  ERR("IHTMLElement_QueryInterface failed: 0x%08x\n", hres);
895  return hres;
896  }
897 
898  l = var_to_size(&width);
899  if(l)
900  IHTMLImgElement_put_width(img, l);
901  l = var_to_size(&height);
902  if(l)
903  IHTMLImgElement_put_height(img, l);
904 
905  *img_elem = img;
906  return S_OK;
907 }
GLint GLint GLsizei width
Definition: gl.h:1546
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
#define WARN(fmt,...)
Definition: debug.h:111
HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
Definition: htmlelem.c:246
long LONG
Definition: pedump.c:60
static LONG var_to_size(const VARIANT *v)
Definition: htmlimg.c:830
static size_t elem
Definition: string.c:68
smooth NULL
Definition: ftsmooth.c:416
r l[0]
Definition: byte_order.h:167
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_generic, HTMLElement **ret)
Definition: htmlelem.c:4032
GLint GLvoid * img
Definition: gl.h:1956
LONG HRESULT
Definition: typedefs.h:77
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
#define ERR(fmt,...)
Definition: debug.h:109
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
static const WCHAR imgW[]
Definition: htmlelem.c:30
#define E_UNEXPECTED
Definition: winerror.h:2456
WCHAR PRUnichar
Definition: nsiface.idl:48

◆ HTMLImageElementFactory_Create()

HRESULT HTMLImageElementFactory_Create ( HTMLInnerWindow window,
HTMLImageElementFactory **  ret_val 
)

Definition at line 972 of file htmlimg.c.

973 {
975 
977  if(!ret)
978  return E_OUTOFMEMORY;
979 
980  ret->IHTMLImageElementFactory_iface.lpVtbl = &HTMLImageElementFactoryVtbl;
981  ret->ref = 1;
982  ret->window = window;
983 
984  init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLImageElementFactory_iface,
986 
987  *ret_val = ret;
988  return S_OK;
989 }
static const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
Definition: htmlimg.c:909
static dispex_static_data_t HTMLImageElementFactory_dispex
Definition: htmlimg.c:965
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
int ret
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919

Referenced by HTMLWindow2_get_Image().

◆ HTMLImageElementFactory_GetIDsOfNames()

static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames ( IHTMLImageElementFactory *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 812 of file htmlimg.c.

815 {
817  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames, lcid, rgDispId);
818 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
REFIID riid
Definition: precomp.h:44

◆ HTMLImageElementFactory_GetTypeInfo()

static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo ( IHTMLImageElementFactory *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 805 of file htmlimg.c.

807 {
809  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
810 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747

◆ HTMLImageElementFactory_GetTypeInfoCount()

static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount ( IHTMLImageElementFactory *  iface,
UINT pctinfo 
)
static

Definition at line 798 of file htmlimg.c.

800 {
802  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
803 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747

◆ HTMLImageElementFactory_Invoke()

static HRESULT WINAPI HTMLImageElementFactory_Invoke ( IHTMLImageElementFactory *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 820 of file htmlimg.c.

824 {
826  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
827  pDispParams, pVarResult, pExcepInfo, puArgErr);
828 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLImageElementFactory_QueryInterface()

static HRESULT WINAPI HTMLImageElementFactory_QueryInterface ( IHTMLImageElementFactory *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 752 of file htmlimg.c.

754 {
756 
757  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
758 
759  if(IsEqualGUID(&IID_IUnknown, riid)) {
760  *ppv = &This->IHTMLImageElementFactory_iface;
761  }else if(IsEqualGUID(&IID_IHTMLImageElementFactory, riid)) {
762  *ppv = &This->IHTMLImageElementFactory_iface;
763  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
764  return *ppv ? S_OK : E_NOINTERFACE;
765  }else {
766  *ppv = NULL;
767  WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
768  return E_NOINTERFACE;
769  }
770 
771  IUnknown_AddRef((IUnknown*)*ppv);
772  return S_OK;
773 }
#define E_NOINTERFACE
Definition: winerror.h:2364
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLImageElementFactory_Release()

static ULONG WINAPI HTMLImageElementFactory_Release ( IHTMLImageElementFactory *  iface)
static

Definition at line 785 of file htmlimg.c.

786 {
789 
790  TRACE("(%p) ref=%d\n", This, ref);
791 
792  if(!ref)
793  heap_free(This);
794 
795  return ref;
796 }
static HTMLImageElementFactory * impl_from_IHTMLImageElementFactory(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:747
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ HTMLImageElementFactory_value()

static HRESULT HTMLImageElementFactory_value ( DispatchEx dispex,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 925 of file htmlimg.c.

928 {
930  IHTMLImgElement *img;
932  HRESULT hres;
933  int argc = params->cArgs - params->cNamedArgs;
934 
935  V_VT(res) = VT_NULL;
936 
937  V_VT(&empty) = VT_EMPTY;
938 
939  width = argc >= 1 ? params->rgvarg + (params->cArgs - 1) : ∅
940  height = argc >= 2 ? params->rgvarg + (params->cArgs - 2) : ∅
941 
942  hres = IHTMLImageElementFactory_create(&This->IHTMLImageElementFactory_iface, *width, *height,
943  &img);
944  if(FAILED(hres))
945  return hres;
946 
947  V_VT(res) = VT_DISPATCH;
949 
950  return S_OK;
951 }
static int argc
Definition: ServiceArgs.c:12
GLint GLint GLsizei width
Definition: gl.h:1546
static HTMLImageElementFactory * impl_from_DispatchEx(DispatchEx *iface)
Definition: htmlimg.c:920
#define V_DISPATCH(A)
Definition: oleauto.h:239
GLenum const GLfloat * params
Definition: glext.h:5645
HRESULT hres
Definition: protocol.c:465
GLint GLvoid * img
Definition: gl.h:1956
LONG HRESULT
Definition: typedefs.h:77
#define V_VT(A)
Definition: oleauto.h:211
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
#define S_OK
Definition: intsafe.h:59
BOOL empty
Definition: button.c:170
GLuint res
Definition: glext.h:9613

◆ HTMLImgElement_AddRef()

static ULONG WINAPI HTMLImgElement_AddRef ( IHTMLImgElement *  iface)
static

Definition at line 41 of file htmlimg.c.

42 {
44 
45  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
46 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29

◆ HTMLImgElement_Create()

HRESULT HTMLImgElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 726 of file htmlimg.c.

727 {
729  nsresult nsres;
730 
731  ret = heap_alloc_zero(sizeof(HTMLImgElement));
732  if(!ret)
733  return E_OUTOFMEMORY;
734 
735  ret->IHTMLImgElement_iface.lpVtbl = &HTMLImgElementVtbl;
736  ret->element.node.vtbl = &HTMLImgElementImplVtbl;
737 
738  HTMLElement_Init(&ret->element, doc, nselem, &HTMLImgElement_dispex);
739 
740  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLImageElement, (void**)&ret->nsimg);
741  assert(nsres == NS_OK);
742 
743  *elem = &ret->element;
744  return S_OK;
745 }
#define assert(x)
Definition: debug.h:53
#define NS_OK
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static size_t elem
Definition: string.c:68
static const NodeImplVtbl HTMLImgElementImplVtbl
Definition: htmlimg.c:694
static const IHTMLImgElementVtbl HTMLImgElementVtbl
Definition: htmlimg.c:587
int ret
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
#define S_OK
Definition: intsafe.h:59
static dispex_static_data_t HTMLImgElement_dispex
Definition: htmlimg.c:719
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_get_align()

static HRESULT WINAPI HTMLImgElement_get_align ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 417 of file htmlimg.c.

418 {
420  nsAString str;
421  nsresult nsres;
422 
423  TRACE("(%p)->(%p)\n", This, p);
424 
426  nsres = nsIDOMHTMLImageElement_GetAlign(This->nsimg, &str);
427 
428  return return_nsstr(nsres, &str, p);
429 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_alt()

static HRESULT WINAPI HTMLImgElement_get_alt ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 252 of file htmlimg.c.

253 {
255  nsAString alt_str;
256  nsresult nsres;
257 
258  TRACE("(%p)->(%p)\n", This, p);
259 
260  nsAString_Init(&alt_str, NULL);
261  nsres = nsIDOMHTMLImageElement_GetAlt(This->nsimg, &alt_str);
262  return return_nsstr(nsres, &alt_str, p);
263 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_border()

static HRESULT WINAPI HTMLImgElement_get_border ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 200 of file htmlimg.c.

201 {
203  FIXME("(%p)->(%p)\n", This, p);
204  return E_NOTIMPL;
205 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_complete()

static HRESULT WINAPI HTMLImgElement_get_complete ( IHTMLImgElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 365 of file htmlimg.c.

366 {
369  nsresult nsres;
370 
371  TRACE("(%p)->(%p)\n", This, p);
372 
373  nsres = nsIDOMHTMLImageElement_GetComplete(This->nsimg, &complete);
374  if(NS_FAILED(nsres)) {
375  ERR("GetComplete failed: %08x\n", nsres);
376  return E_FAIL;
377  }
378 
379  *p = complete ? VARIANT_TRUE : VARIANT_FALSE;
380  return S_OK;
381 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
unsigned char cpp_bool
Definition: atl.c:38
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902
static BOOL complete
Definition: htmldoc.c:198

◆ HTMLImgElement_get_dynsrc()

static HRESULT WINAPI HTMLImgElement_get_dynsrc ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 351 of file htmlimg.c.

352 {
354  FIXME("(%p)->(%p)\n", This, p);
355  return E_NOTIMPL;
356 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_fileCreatedDate()

static HRESULT WINAPI HTMLImgElement_get_fileCreatedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 151 of file htmlimg.c.

152 {
154  FIXME("(%p)->(%p)\n", This, p);
155  return E_NOTIMPL;
156 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_fileModifiedDate()

static HRESULT WINAPI HTMLImgElement_get_fileModifiedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 158 of file htmlimg.c.

159 {
161  FIXME("(%p)->(%p)\n", This, p);
162  return E_NOTIMPL;
163 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_fileSize()

static HRESULT WINAPI HTMLImgElement_get_fileSize ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 144 of file htmlimg.c.

145 {
147  FIXME("(%p)->(%p)\n", This, p);
148  return E_NOTIMPL;
149 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_fileUpdatedDate()

static HRESULT WINAPI HTMLImgElement_get_fileUpdatedDate ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 165 of file htmlimg.c.

166 {
168  FIXME("(%p)->(%p)\n", This, p);
169  return E_NOTIMPL;
170 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_height()

static HRESULT WINAPI HTMLImgElement_get_height ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 555 of file htmlimg.c.

556 {
558  UINT32 height;
559  nsresult nsres;
560 
561  TRACE("(%p)->(%p)\n", This, p);
562 
563  nsres = nsIDOMHTMLImageElement_GetHeight(This->nsimg, &height);
564  if(NS_FAILED(nsres)) {
565  ERR("GetHeight failed: %08x\n", nsres);
566  return E_FAIL;
567  }
568 
569  *p = height;
570  return S_OK;
571 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
unsigned int UINT32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_href()

static HRESULT WINAPI HTMLImgElement_get_href ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 179 of file htmlimg.c.

180 {
182  FIXME("(%p)->(%p)\n", This, p);
183  return E_NOTIMPL;
184 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_hspace()

static HRESULT WINAPI HTMLImgElement_get_hspace ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 228 of file htmlimg.c.

229 {
231  FIXME("(%p)->(%p)\n", This, p);
232  return E_NOTIMPL;
233 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_isMap()

static HRESULT WINAPI HTMLImgElement_get_isMap ( IHTMLImgElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 103 of file htmlimg.c.

104 {
106  cpp_bool b;
107  nsresult nsres;
108 
109  TRACE("(%p)->(%p)\n", This, p);
110 
111  if (p == NULL)
112  return E_INVALIDARG;
113 
114  nsres = nsIDOMHTMLImageElement_GetIsMap(This->nsimg, &b);
115  if (NS_FAILED(nsres)) {
116  ERR("Get IsMap failed: %08x\n", nsres);
117  return E_FAIL;
118  }
119  *p = b ? VARIANT_TRUE : VARIANT_FALSE;
120  return S_OK;
121 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
#define b
Definition: ke_i.h:79
#define NS_FAILED(res)
unsigned char cpp_bool
Definition: atl.c:38
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_loop()

static HRESULT WINAPI HTMLImgElement_get_loop ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 390 of file htmlimg.c.

391 {
393  FIXME("(%p)->(%p)\n", This, p);
394  return E_NOTIMPL;
395 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_lowsrc()

static HRESULT WINAPI HTMLImgElement_get_lowsrc ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 323 of file htmlimg.c.

324 {
326  FIXME("(%p)->(%p)\n", This, p);
327  return E_NOTIMPL;
328 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_mimeType()

static HRESULT WINAPI HTMLImgElement_get_mimeType ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 137 of file htmlimg.c.

138 {
140  FIXME("(%p)->(%p)\n", This, p);
141  return E_NOTIMPL;
142 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_name()

static HRESULT WINAPI HTMLImgElement_get_name ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 492 of file htmlimg.c.

493 {
495  nsAString name;
496  nsresult nsres;
497 
498  TRACE("(%p)->(%p)\n", This, p);
499 
501  nsres = nsIDOMHTMLImageElement_GetName(This->nsimg, &name);
502  return return_nsstr(nsres, &name, p);
503 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
Definition: name.c:36
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902
GLuint const GLchar * name
Definition: glext.h:6031

◆ HTMLImgElement_get_nameProp()

static HRESULT WINAPI HTMLImgElement_get_nameProp ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 186 of file htmlimg.c.

187 {
189  FIXME("(%p)->(%p)\n", This, p);
190  return E_NOTIMPL;
191 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_onabort()

static HRESULT WINAPI HTMLImgElement_get_onabort ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 476 of file htmlimg.c.

477 {
479 
480  TRACE("(%p)->(%p)\n", This, p);
481 
482  return get_node_event(&This->element.node, EVENTID_ABORT, p);
483 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_onerror()

static HRESULT WINAPI HTMLImgElement_get_onerror ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 458 of file htmlimg.c.

459 {
461 
462  TRACE("(%p)->(%p)\n", This, p);
463 
464  return get_node_event(&This->element.node, EVENTID_ERROR, p);
465 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_onload()

static HRESULT WINAPI HTMLImgElement_get_onload ( IHTMLImgElement *  iface,
VARIANT p 
)
static

Definition at line 440 of file htmlimg.c.

441 {
443 
444  TRACE("(%p)->(%p)\n", This, p);
445 
446  return get_node_event(&This->element.node, EVENTID_LOAD, p);
447 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_protocol()

static HRESULT WINAPI HTMLImgElement_get_protocol ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 172 of file htmlimg.c.

173 {
175  FIXME("(%p)->(%p)\n", This, p);
176  return E_NOTIMPL;
177 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_readyState()

static HRESULT WINAPI HTMLImgElement_get_readyState ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 358 of file htmlimg.c.

359 {
361  FIXME("(%p)->(%p)\n", This, p);
362  return E_NOTIMPL;
363 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_readystate()

static HRESULT HTMLImgElement_get_readystate ( HTMLDOMNode iface,
BSTR p 
)
static

Definition at line 667 of file htmlimg.c.

668 {
670 
671  return IHTMLImgElement_get_readyState(&This->IHTMLImgElement_iface, p);
672 }
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlimg.c:645
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_src()

static HRESULT WINAPI HTMLImgElement_get_src ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 282 of file htmlimg.c.

283 {
285  const PRUnichar *src;
286  nsAString src_str;
287  nsresult nsres;
288  HRESULT hres = S_OK;
289 
290  static const WCHAR blockedW[] = {'B','L','O','C','K','E','D',':',':',0};
291 
292  TRACE("(%p)->(%p)\n", This, p);
293 
294  nsAString_Init(&src_str, NULL);
295  nsres = nsIDOMHTMLImageElement_GetSrc(This->nsimg, &src_str);
296  if(NS_SUCCEEDED(nsres)) {
297  nsAString_GetData(&src_str, &src);
298 
299  if(!strncmpiW(src, blockedW, sizeof(blockedW)/sizeof(WCHAR)-1)) {
300  TRACE("returning BLOCKED::\n");
301  *p = SysAllocString(blockedW);
302  if(!*p)
304  }else {
305  hres = nsuri_to_url(src, TRUE, p);
306  }
307  }else {
308  ERR("GetSrc failed: %08x\n", nsres);
309  hres = E_FAIL;
310  }
311 
312  nsAString_Finish(&src_str);
313  return hres;
314 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define TRUE
Definition: types.h:120
#define strncmpiW(s1, s2, n)
Definition: unicode.h:40
#define E_FAIL
Definition: ddrawi.h:102
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT nsuri_to_url(LPCWSTR, BOOL, BSTR *) DECLSPEC_HIDDEN
Definition: nsio.c:175
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define NS_SUCCEEDED(res)
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLenum src
Definition: glext.h:6340
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_start()

static HRESULT WINAPI HTMLImgElement_get_start ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 580 of file htmlimg.c.

581 {
583  FIXME("(%p)->(%p)\n", This, p);
584  return E_NOTIMPL;
585 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_useMap()

static HRESULT WINAPI HTMLImgElement_get_useMap ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 130 of file htmlimg.c.

131 {
133  FIXME("(%p)->(%p)\n", This, p);
134  return E_NOTIMPL;
135 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_vrml()

static HRESULT WINAPI HTMLImgElement_get_vrml ( IHTMLImgElement *  iface,
BSTR p 
)
static

Definition at line 337 of file htmlimg.c.

338 {
340  FIXME("(%p)->(%p)\n", This, p);
341  return E_NOTIMPL;
342 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_vspace()

static HRESULT WINAPI HTMLImgElement_get_vspace ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 214 of file htmlimg.c.

215 {
217  FIXME("(%p)->(%p)\n", This, p);
218  return E_NOTIMPL;
219 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_get_width()

static HRESULT WINAPI HTMLImgElement_get_width ( IHTMLImgElement *  iface,
LONG p 
)
static

Definition at line 521 of file htmlimg.c.

522 {
524  UINT32 width;
525  nsresult nsres;
526 
527  TRACE("(%p)->(%p)\n", This, p);
528 
529  nsres = nsIDOMHTMLImageElement_GetWidth(This->nsimg, &width);
530  if(NS_FAILED(nsres)) {
531  ERR("GetWidth failed: %08x\n", nsres);
532  return E_FAIL;
533  }
534 
535  *p = width;
536  return S_OK;
537 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
GLint GLint GLsizei width
Definition: gl.h:1546
#define E_FAIL
Definition: ddrawi.h:102
unsigned int UINT32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLImgElement_GetIDsOfNames()

static HRESULT WINAPI HTMLImgElement_GetIDsOfNames ( IHTMLImgElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 69 of file htmlimg.c.

72 {
74  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
75  cNames, lcid, rgDispId);
76 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
REFIID riid
Definition: precomp.h:44

◆ HTMLImgElement_GetTypeInfo()

static HRESULT WINAPI HTMLImgElement_GetTypeInfo ( IHTMLImgElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 61 of file htmlimg.c.

63 {
65  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
66  ppTInfo);
67 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29

◆ HTMLImgElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLImgElement_GetTypeInfoCount ( IHTMLImgElement *  iface,
UINT pctinfo 
)
static

Definition at line 55 of file htmlimg.c.

56 {
58  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
59 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29

◆ HTMLImgElement_Invoke()

static HRESULT WINAPI HTMLImgElement_Invoke ( IHTMLImgElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 78 of file htmlimg.c.

81 {
83  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
84  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
85 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLImgElement_put_align()

static HRESULT WINAPI HTMLImgElement_put_align ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 397 of file htmlimg.c.

398 {
400  nsAString str;
401  nsresult nsres;
402 
403  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
404 
406 
407  nsres = nsIDOMHTMLImageElement_SetAlign(This->nsimg, &str);
409  if (NS_FAILED(nsres)){
410  ERR("Set Align(%s) failed: %08x\n", debugstr_w(v), nsres);
411  return E_FAIL;
412  }
413 
414  return S_OK;
415 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
const WCHAR * str
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_put_alt()

static HRESULT WINAPI HTMLImgElement_put_alt ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 235 of file htmlimg.c.

236 {
238  nsAString alt_str;
239  nsresult nsres;
240 
241  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
242 
243  nsAString_InitDepend(&alt_str, v);
244  nsres = nsIDOMHTMLImageElement_SetAlt(This->nsimg, &alt_str);
245  nsAString_Finish(&alt_str);
246  if(NS_FAILED(nsres))
247  ERR("SetAlt failed: %08x\n", nsres);
248 
249  return S_OK;
250 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_put_border()

static HRESULT WINAPI HTMLImgElement_put_border ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 193 of file htmlimg.c.

194 {
196  FIXME("(%p)->()\n", This);
197  return E_NOTIMPL;
198 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_dynsrc()

static HRESULT WINAPI HTMLImgElement_put_dynsrc ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 344 of file htmlimg.c.

345 {
347  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
348  return E_NOTIMPL;
349 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_height()

static HRESULT WINAPI HTMLImgElement_put_height ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 539 of file htmlimg.c.

540 {
542  nsresult nsres;
543 
544  TRACE("(%p)->(%d)\n", This, v);
545 
546  nsres = nsIDOMHTMLImageElement_SetHeight(This->nsimg, v);
547  if(NS_FAILED(nsres)) {
548  ERR("SetHeight failed: %08x\n", nsres);
549  return E_FAIL;
550  }
551 
552  return S_OK;
553 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_put_hspace()

static HRESULT WINAPI HTMLImgElement_put_hspace ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 221 of file htmlimg.c.

222 {
224  FIXME("(%p)->(%d)\n", This, v);
225  return E_NOTIMPL;
226 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_isMap()

static HRESULT WINAPI HTMLImgElement_put_isMap ( IHTMLImgElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 87 of file htmlimg.c.

88 {
90  nsresult nsres;
91 
92  TRACE("(%p)->(%x)\n", This, v);
93 
94  nsres = nsIDOMHTMLImageElement_SetIsMap(This->nsimg, v != VARIANT_FALSE);
95  if (NS_FAILED(nsres)) {
96  ERR("Set IsMap failed: %08x\n", nsres);
97  return E_FAIL;
98  }
99 
100  return S_OK;
101 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_put_loop()

static HRESULT WINAPI HTMLImgElement_put_loop ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 383 of file htmlimg.c.

384 {
386  FIXME("(%p)->()\n", This);
387  return E_NOTIMPL;
388 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_lowsrc()

static HRESULT WINAPI HTMLImgElement_put_lowsrc ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 316 of file htmlimg.c.

317 {
319  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
320  return E_NOTIMPL;
321 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_name()

static HRESULT WINAPI HTMLImgElement_put_name ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 485 of file htmlimg.c.

486 {
488  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
489  return E_NOTIMPL;
490 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_onabort()

static HRESULT WINAPI HTMLImgElement_put_onabort ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 467 of file htmlimg.c.

468 {
470 
471  TRACE("(%p)->()\n", This);
472 
473  return set_node_event(&This->element.node, EVENTID_ABORT, &v);
474 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLImgElement_put_onerror()

static HRESULT WINAPI HTMLImgElement_put_onerror ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 449 of file htmlimg.c.

450 {
452 
453  TRACE("(%p)->()\n", This);
454 
455  return set_node_event(&This->element.node, EVENTID_ERROR, &v);
456 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLImgElement_put_onload()

static HRESULT WINAPI HTMLImgElement_put_onload ( IHTMLImgElement *  iface,
VARIANT  v 
)
static

Definition at line 431 of file htmlimg.c.

432 {
434 
435  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
436 
437  return set_node_event(&This->element.node, EVENTID_LOAD, &v);
438 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80
#define TRACE(s)
Definition: solgame.cpp:4
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040

◆ HTMLImgElement_put_src()

static HRESULT WINAPI HTMLImgElement_put_src ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 265 of file htmlimg.c.

266 {
268  nsAString src_str;
269  nsresult nsres;
270 
271  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
272 
273  nsAString_InitDepend(&src_str, v);
274  nsres = nsIDOMHTMLImageElement_SetSrc(This->nsimg, &src_str);
275  nsAString_Finish(&src_str);
276  if(NS_FAILED(nsres))
277  ERR("SetSrc failed: %08x\n", nsres);
278 
279  return NS_OK;
280 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define NS_OK
#define debugstr_w
Definition: kernel32.h:32
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
const GLdouble * v
Definition: gl.h:2040
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_put_start()

static HRESULT WINAPI HTMLImgElement_put_start ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 573 of file htmlimg.c.

574 {
576  FIXME("(%p)->()\n", This);
577  return E_NOTIMPL;
578 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_useMap()

static HRESULT WINAPI HTMLImgElement_put_useMap ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 123 of file htmlimg.c.

124 {
126  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
127  return E_NOTIMPL;
128 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_vrml()

static HRESULT WINAPI HTMLImgElement_put_vrml ( IHTMLImgElement *  iface,
BSTR  v 
)
static

Definition at line 330 of file htmlimg.c.

331 {
333  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
334  return E_NOTIMPL;
335 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_vspace()

static HRESULT WINAPI HTMLImgElement_put_vspace ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 207 of file htmlimg.c.

208 {
210  FIXME("(%p)->(%d)\n", This, v);
211  return E_NOTIMPL;
212 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLImgElement_put_width()

static HRESULT WINAPI HTMLImgElement_put_width ( IHTMLImgElement *  iface,
LONG  v 
)
static

Definition at line 505 of file htmlimg.c.

506 {
508  nsresult nsres;
509 
510  TRACE("(%p)->(%d)\n", This, v);
511 
512  nsres = nsIDOMHTMLImageElement_SetWidth(This->nsimg, v);
513  if(NS_FAILED(nsres)) {
514  ERR("SetWidth failed: %08x\n", nsres);
515  return E_FAIL;
516  }
517 
518  return S_OK;
519 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
#define E_FAIL
Definition: ddrawi.h:102
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLImgElement_QI()

static HRESULT HTMLImgElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 650 of file htmlimg.c.

651 {
653 
654  *ppv = NULL;
655 
656  if(IsEqualGUID(&IID_IHTMLImgElement, riid)) {
657  TRACE("(%p)->(IID_IHTMLImgElement %p)\n", This, ppv);
658  *ppv = &This->IHTMLImgElement_iface;
659  }else {
660  return HTMLElement_QI(&This->element.node, riid, ppv);
661  }
662 
663  IUnknown_AddRef((IUnknown*)*ppv);
664  return S_OK;
665 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlimg.c:645
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLImgElement_QueryInterface()

static HRESULT WINAPI HTMLImgElement_QueryInterface ( IHTMLImgElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 34 of file htmlimg.c.

35 {
37 
38  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
39 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ HTMLImgElement_Release()

static ULONG WINAPI HTMLImgElement_Release ( IHTMLImgElement *  iface)
static

Definition at line 48 of file htmlimg.c.

49 {
51 
52  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
53 }
static HTMLImgElement * impl_from_IHTMLImgElement(IHTMLImgElement *iface)
Definition: htmlimg.c:29

◆ HTMLImgElement_traverse()

static void HTMLImgElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 674 of file htmlimg.c.

675 {
677 
678  if(This->nsimg)
679  note_cc_edge((nsISupports*)This->nsimg, "This->nsimg", cb);
680 }
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlimg.c:645
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32

◆ HTMLImgElement_unlink()

static void HTMLImgElement_unlink ( HTMLDOMNode iface)
static

Definition at line 682 of file htmlimg.c.

683 {
685 
686  if(This->nsimg) {
687  nsIDOMHTMLImageElement *nsimg = This->nsimg;
688 
689  This->nsimg = NULL;
690  nsIDOMHTMLImageElement_Release(nsimg);
691  }
692 }
static HTMLImgElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlimg.c:645
smooth NULL
Definition: ftsmooth.c:416

◆ impl_from_DispatchEx()

static HTMLImageElementFactory* impl_from_DispatchEx ( DispatchEx iface)
inlinestatic

Definition at line 920 of file htmlimg.c.

921 {
922  return CONTAINING_RECORD(iface, HTMLImageElementFactory, dispex);
923 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLImageElementFactory_value().

◆ impl_from_HTMLDOMNode()

static HTMLImgElement* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 645 of file htmlimg.c.

646 {
647  return CONTAINING_RECORD(iface, HTMLImgElement, element.node);
648 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLImgElement_get_readystate(), HTMLImgElement_QI(), HTMLImgElement_traverse(), and HTMLImgElement_unlink().

◆ impl_from_IHTMLImageElementFactory()

static HTMLImageElementFactory* impl_from_IHTMLImageElementFactory ( IHTMLImageElementFactory *  iface)
inlinestatic

Definition at line 747 of file htmlimg.c.

748 {
749  return CONTAINING_RECORD(iface, HTMLImageElementFactory, IHTMLImageElementFactory_iface);
750 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLImageElementFactory_AddRef(), HTMLImageElementFactory_create(), HTMLImageElementFactory_GetIDsOfNames(), HTMLImageElementFactory_GetTypeInfo(), HTMLImageElementFactory_GetTypeInfoCount(), HTMLImageElementFactory_Invoke(), HTMLImageElementFactory_QueryInterface(), and HTMLImageElementFactory_Release().

◆ impl_from_IHTMLImgElement()

static HTMLImgElement* impl_from_IHTMLImgElement ( IHTMLImgElement *  iface)
inlinestatic

Definition at line 29 of file htmlimg.c.

30 {
31  return CONTAINING_RECORD(iface, HTMLImgElement, IHTMLImgElement_iface);
32 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLImgElement_AddRef(), HTMLImgElement_get_align(), HTMLImgElement_get_alt(), HTMLImgElement_get_border(), HTMLImgElement_get_complete(), HTMLImgElement_get_dynsrc(), HTMLImgElement_get_fileCreatedDate(), HTMLImgElement_get_fileModifiedDate(), HTMLImgElement_get_fileSize(), HTMLImgElement_get_fileUpdatedDate(), HTMLImgElement_get_height(), HTMLImgElement_get_href(), HTMLImgElement_get_hspace(), HTMLImgElement_get_isMap(), HTMLImgElement_get_loop(), HTMLImgElement_get_lowsrc(), HTMLImgElement_get_mimeType(), HTMLImgElement_get_name(), HTMLImgElement_get_nameProp(), HTMLImgElement_get_onabort(), HTMLImgElement_get_onerror(), HTMLImgElement_get_onload(), HTMLImgElement_get_protocol(), HTMLImgElement_get_readyState(), HTMLImgElement_get_src(), HTMLImgElement_get_start(), HTMLImgElement_get_useMap(), HTMLImgElement_get_vrml(), HTMLImgElement_get_vspace(), HTMLImgElement_get_width(), HTMLImgElement_GetIDsOfNames(), HTMLImgElement_GetTypeInfo(), HTMLImgElement_GetTypeInfoCount(), HTMLImgElement_Invoke(), HTMLImgElement_put_align(), HTMLImgElement_put_alt(), HTMLImgElement_put_border(), HTMLImgElement_put_dynsrc(), HTMLImgElement_put_height(), HTMLImgElement_put_hspace(), HTMLImgElement_put_isMap(), HTMLImgElement_put_loop(), HTMLImgElement_put_lowsrc(), HTMLImgElement_put_name(), HTMLImgElement_put_onabort(), HTMLImgElement_put_onerror(), HTMLImgElement_put_onload(), HTMLImgElement_put_src(), HTMLImgElement_put_start(), HTMLImgElement_put_useMap(), HTMLImgElement_put_vrml(), HTMLImgElement_put_vspace(), HTMLImgElement_put_width(), HTMLImgElement_QueryInterface(), and HTMLImgElement_Release().

◆ var_to_size()

static LONG var_to_size ( const VARIANT v)
static

Definition at line 830 of file htmlimg.c.

831 {
832  switch(V_VT(v)) {
833  case VT_EMPTY:
834  return 0;
835  case VT_I4:
836  return V_I4(v);
837  case VT_BSTR: {
838  LONG ret;
839  HRESULT hres;
840 
841  hres = VarI4FromStr(V_BSTR(v), 0, 0, &ret);
842  if(FAILED(hres)) {
843  FIXME("VarI4FromStr failed: %08x\n", hres);
844  return 0;
845  }
846  return ret;
847  }
848  default:
849  FIXME("unsupported size %s\n", debugstr_variant(v));
850  }
851  return 0;
852 }
Definition: compat.h:1947
#define V_I4(A)
Definition: oleauto.h:247
long LONG
Definition: pedump.c:60
#define FIXME(fmt,...)
Definition: debug.h:110
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
HRESULT WINAPI VarI4FromStr(OLECHAR *strIn, LCID lcid, ULONG dwFlags, LONG *piOut)
Definition: vartype.c:1610

Referenced by HTMLImageElementFactory_create().

Variable Documentation

◆ HTMLImageElementFactory_dispex

dispex_static_data_t HTMLImageElementFactory_dispex
static
Initial value:
= {
IHTMLImageElementFactory_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
Definition: htmlimg.c:958
static const tid_t HTMLImageElementFactory_iface_tids[]
Definition: htmlimg.c:953

Definition at line 965 of file htmlimg.c.

Referenced by HTMLImageElementFactory_Create().

◆ HTMLImageElementFactory_dispex_vtbl

const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl
static
Initial value:
= {
}
smooth NULL
Definition: ftsmooth.c:416
static HRESULT HTMLImageElementFactory_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlimg.c:925

Definition at line 958 of file htmlimg.c.

◆ HTMLImageElementFactory_iface_tids

const tid_t HTMLImageElementFactory_iface_tids[]
static
Initial value:
= {
IHTMLImageElementFactory_tid,
0
}

Definition at line 953 of file htmlimg.c.

◆ HTMLImageElementFactoryVtbl

const IHTMLImageElementFactoryVtbl HTMLImageElementFactoryVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLImageElementFactory_GetIDsOfNames(IHTMLImageElementFactory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlimg.c:812
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfo(IHTMLImageElementFactory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlimg.c:805
static HRESULT WINAPI HTMLImageElementFactory_GetTypeInfoCount(IHTMLImageElementFactory *iface, UINT *pctinfo)
Definition: htmlimg.c:798
static HRESULT WINAPI HTMLImageElementFactory_Invoke(IHTMLImageElementFactory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlimg.c:820
static HRESULT WINAPI HTMLImageElementFactory_QueryInterface(IHTMLImageElementFactory *iface, REFIID riid, void **ppv)
Definition: htmlimg.c:752
static ULONG WINAPI HTMLImageElementFactory_Release(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:785
static ULONG WINAPI HTMLImageElementFactory_AddRef(IHTMLImageElementFactory *iface)
Definition: htmlimg.c:775
static HRESULT WINAPI HTMLImageElementFactory_create(IHTMLImageElementFactory *iface, VARIANT width, VARIANT height, IHTMLImgElement **img_elem)
Definition: htmlimg.c:854

Definition at line 909 of file htmlimg.c.

Referenced by HTMLImageElementFactory_Create().

◆ HTMLImgElement_dispex

dispex_static_data_t HTMLImgElement_dispex
static
Initial value:
= {
DispHTMLImg_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLImgElement_iface_tids[]
Definition: htmlimg.c:714

Definition at line 719 of file htmlimg.c.

Referenced by HTMLImgElement_Create().

◆ HTMLImgElement_iface_tids

const tid_t HTMLImgElement_iface_tids[]
static
Initial value:
= {
IHTMLImgElement_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 714 of file htmlimg.c.

◆ HTMLImgElementImplVtbl

const NodeImplVtbl HTMLImgElementImplVtbl
static
Initial value:
= {
}
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
static void HTMLImgElement_unlink(HTMLDOMNode *iface)
Definition: htmlimg.c:682
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
static HRESULT HTMLImgElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlimg.c:650
smooth NULL
Definition: ftsmooth.c:416
static HRESULT HTMLImgElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
Definition: htmlimg.c:667
static void HTMLImgElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlimg.c:674
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793

Definition at line 694 of file htmlimg.c.

Referenced by HTMLImgElement_Create().

◆ HTMLImgElementVtbl

const IHTMLImgElementVtbl HTMLImgElementVtbl
static

Definition at line 587 of file htmlimg.c.

Referenced by HTMLImgElement_Create().