ReactOS  0.4.14-dev-115-g4576127
htmlstyleelem.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlstyleelem.c:

Go to the source code of this file.

Classes

struct  HTMLStyleElement
 

Functions

static HTMLStyleElementimpl_from_IHTMLStyleElement (IHTMLStyleElement *iface)
 
static HRESULT WINAPI HTMLStyleElement_QueryInterface (IHTMLStyleElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLStyleElement_AddRef (IHTMLStyleElement *iface)
 
static ULONG WINAPI HTMLStyleElement_Release (IHTMLStyleElement *iface)
 
static HRESULT WINAPI HTMLStyleElement_GetTypeInfoCount (IHTMLStyleElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLStyleElement_GetTypeInfo (IHTMLStyleElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLStyleElement_GetIDsOfNames (IHTMLStyleElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLStyleElement_Invoke (IHTMLStyleElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLStyleElement_put_type (IHTMLStyleElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleElement_get_type (IHTMLStyleElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleElement_get_readyState (IHTMLStyleElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyleElement_put_onreadystatechange (IHTMLStyleElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyleElement_get_onreadystatechange (IHTMLStyleElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyleElement_put_onload (IHTMLStyleElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyleElement_get_onload (IHTMLStyleElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyleElement_put_onerror (IHTMLStyleElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyleElement_get_onerror (IHTMLStyleElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyleElement_get_styleSheet (IHTMLStyleElement *iface, IHTMLStyleSheet **p)
 
static HRESULT WINAPI HTMLStyleElement_put_disabled (IHTMLStyleElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyleElement_get_disabled (IHTMLStyleElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyleElement_put_media (IHTMLStyleElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyleElement_get_media (IHTMLStyleElement *iface, BSTR *p)
 
static HTMLStyleElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLStyleElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static void HTMLStyleElement_destructor (HTMLDOMNode *iface)
 
static void HTMLStyleElement_traverse (HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
 
static void HTMLStyleElement_unlink (HTMLDOMNode *iface)
 
HRESULT HTMLStyleElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLStyleElementVtbl HTMLStyleElementVtbl
 
static const NodeImplVtbl HTMLStyleElementImplVtbl
 
static const tid_t HTMLStyleElement_iface_tids []
 
static dispex_static_data_t HTMLStyleElement_dispex
 

Function Documentation

◆ HTMLStyleElement_AddRef()

static ULONG WINAPI HTMLStyleElement_AddRef ( IHTMLStyleElement *  iface)
static

Definition at line 43 of file htmlstyleelem.c.

44 {
46 
47  return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
48 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30

◆ HTMLStyleElement_Create()

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

Definition at line 359 of file htmlstyleelem.c.

360 {
362  nsresult nsres;
363 
364  ret = heap_alloc_zero(sizeof(*ret));
365  if(!ret)
366  return E_OUTOFMEMORY;
367 
368  ret->IHTMLStyleElement_iface.lpVtbl = &HTMLStyleElementVtbl;
369  ret->element.node.vtbl = &HTMLStyleElementImplVtbl;
370 
371  HTMLElement_Init(&ret->element, doc, nselem, &HTMLStyleElement_dispex);
372 
373  nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLStyleElement, (void**)&ret->nsstyle);
374  assert(nsres == NS_OK);
375 
376  *elem = &ret->element;
377  return S_OK;
378 }
static const NodeImplVtbl HTMLStyleElementImplVtbl
#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 IHTMLStyleElementVtbl HTMLStyleElementVtbl
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 HTMLStyleElement_dispex
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLStyleElement_destructor()

static void HTMLStyleElement_destructor ( HTMLDOMNode iface)
static

Definition at line 295 of file htmlstyleelem.c.

296 {
298 
299  if(This->style_sheet) {
300  IHTMLStyleSheet_Release(This->style_sheet);
301  This->style_sheet = NULL;
302  }
303 
304  HTMLElement_destructor(iface);
305 }
smooth NULL
Definition: ftsmooth.c:416
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
static HTMLStyleElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)

◆ HTMLStyleElement_get_disabled()

static HRESULT WINAPI HTMLStyleElement_get_disabled ( IHTMLStyleElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 206 of file htmlstyleelem.c.

207 {
209  FIXME("(%p)->(%p)\n", This, p);
210  return E_NOTIMPL;
211 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyleElement_get_media()

static HRESULT WINAPI HTMLStyleElement_get_media ( IHTMLStyleElement *  iface,
BSTR p 
)
static

Definition at line 232 of file htmlstyleelem.c.

233 {
235  nsAString nsstr;
236  nsresult nsres;
237 
238  TRACE("(%p)->(%p)\n", This, p);
239 
240  nsAString_Init(&nsstr, NULL);
241  nsres = nsIDOMHTMLStyleElement_GetMedia(This->nsstyle, &nsstr);
242  return return_nsstr(nsres, &nsstr, p);
243 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
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

◆ HTMLStyleElement_get_onerror()

static HRESULT WINAPI HTMLStyleElement_get_onerror ( IHTMLStyleElement *  iface,
VARIANT p 
)
static

Definition at line 162 of file htmlstyleelem.c.

163 {
165  FIXME("(%p)->(%p)\n", This, p);
166  return E_NOTIMPL;
167 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyleElement_get_onload()

static HRESULT WINAPI HTMLStyleElement_get_onload ( IHTMLStyleElement *  iface,
VARIANT p 
)
static

Definition at line 148 of file htmlstyleelem.c.

149 {
151  FIXME("(%p)->(%p)\n", This, p);
152  return E_NOTIMPL;
153 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyleElement_get_onreadystatechange()

static HRESULT WINAPI HTMLStyleElement_get_onreadystatechange ( IHTMLStyleElement *  iface,
VARIANT p 
)
static

Definition at line 134 of file htmlstyleelem.c.

135 {
137  FIXME("(%p)->(%p)\n", This, p);
138  return E_NOTIMPL;
139 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyleElement_get_readyState()

static HRESULT WINAPI HTMLStyleElement_get_readyState ( IHTMLStyleElement *  iface,
BSTR p 
)
static

Definition at line 120 of file htmlstyleelem.c.

121 {
123  FIXME("(%p)->(%p)\n", This, p);
124  return E_NOTIMPL;
125 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyleElement_get_styleSheet()

static HRESULT WINAPI HTMLStyleElement_get_styleSheet ( IHTMLStyleElement *  iface,
IHTMLStyleSheet **  p 
)
static

Definition at line 169 of file htmlstyleelem.c.

170 {
172 
173  TRACE("(%p)->(%p)\n", This, p);
174 
175  if(!This->nsstyle)
176  return E_FAIL;
177 
178  if(!This->style_sheet) {
180  nsresult nsres;
181 
182  nsres = nsIDOMHTMLStyleElement_GetDOMStyleSheet(This->nsstyle, &ss);
183  assert(nsres == NS_OK);
184 
185  if(ss) {
186  This->style_sheet = HTMLStyleSheet_Create(ss);
187  nsIDOMStyleSheet_Release(ss);
188  if(!This->style_sheet)
189  return E_OUTOFMEMORY;
190  }
191  }
192 
193  if(This->style_sheet)
194  IHTMLStyleSheet_AddRef(This->style_sheet);
195  *p = This->style_sheet;
196  return S_OK;
197 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define assert(x)
Definition: debug.h:53
#define E_FAIL
Definition: ddrawi.h:102
#define NS_OK
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
IHTMLStyleSheet * HTMLStyleSheet_Create(nsIDOMStyleSheet *nsstylesheet)
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902
#define ss
Definition: i386-dis.c:432

◆ HTMLStyleElement_get_type()

static HRESULT WINAPI HTMLStyleElement_get_type ( IHTMLStyleElement *  iface,
BSTR p 
)
static

Definition at line 107 of file htmlstyleelem.c.

108 {
110  nsAString nsstr;
111  nsresult nsres;
112 
113  TRACE("(%p)->(%p)\n", This, p);
114 
115  nsAString_Init(&nsstr, NULL);
116  nsres = nsIDOMHTMLStyleElement_GetType(This->nsstyle, &nsstr);
117  return return_nsstr(nsres, &nsstr, p);
118 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
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

◆ HTMLStyleElement_GetIDsOfNames()

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

Definition at line 71 of file htmlstyleelem.c.

73 {
75  return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
76  cNames, lcid, rgDispId);
77 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
REFIID riid
Definition: precomp.h:44

◆ HTMLStyleElement_GetTypeInfo()

static HRESULT WINAPI HTMLStyleElement_GetTypeInfo ( IHTMLStyleElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 63 of file htmlstyleelem.c.

65 {
67  return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
68  ppTInfo);
69 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30

◆ HTMLStyleElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLStyleElement_GetTypeInfoCount ( IHTMLStyleElement *  iface,
UINT pctinfo 
)
static

Definition at line 57 of file htmlstyleelem.c.

58 {
60  return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
61 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30

◆ HTMLStyleElement_Invoke()

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

Definition at line 79 of file htmlstyleelem.c.

82 {
84  return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
85  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
86 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLStyleElement_put_disabled()

static HRESULT WINAPI HTMLStyleElement_put_disabled ( IHTMLStyleElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 199 of file htmlstyleelem.c.

200 {
202  FIXME("(%p)->(%x)\n", This, v);
203  return E_NOTIMPL;
204 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLStyleElement_put_media()

static HRESULT WINAPI HTMLStyleElement_put_media ( IHTMLStyleElement *  iface,
BSTR  v 
)
static

Definition at line 213 of file htmlstyleelem.c.

214 {
216  nsAString media_str;
217  nsresult nsres;
218 
219  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
220 
221  nsAString_InitDepend(&media_str, v);
222  nsres = nsIDOMHTMLStyleElement_SetMedia(This->nsstyle, &media_str);
223  nsAString_Finish(&media_str);
224  if(NS_FAILED(nsres)) {
225  ERR("SetMedia failed: %08x\n", nsres);
226  return E_FAIL;
227  }
228 
229  return S_OK;
230 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define E_FAIL
Definition: ddrawi.h:102
#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

◆ HTMLStyleElement_put_onerror()

static HRESULT WINAPI HTMLStyleElement_put_onerror ( IHTMLStyleElement *  iface,
VARIANT  v 
)
static

Definition at line 155 of file htmlstyleelem.c.

156 {
158  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
159  return E_NOTIMPL;
160 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLStyleElement_put_onload()

static HRESULT WINAPI HTMLStyleElement_put_onload ( IHTMLStyleElement *  iface,
VARIANT  v 
)
static

Definition at line 141 of file htmlstyleelem.c.

142 {
144  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
145  return E_NOTIMPL;
146 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLStyleElement_put_onreadystatechange()

static HRESULT WINAPI HTMLStyleElement_put_onreadystatechange ( IHTMLStyleElement *  iface,
VARIANT  v 
)
static

Definition at line 127 of file htmlstyleelem.c.

128 {
130  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
131  return E_NOTIMPL;
132 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLStyleElement_put_type()

static HRESULT WINAPI HTMLStyleElement_put_type ( IHTMLStyleElement *  iface,
BSTR  v 
)
static

Definition at line 88 of file htmlstyleelem.c.

89 {
91  nsAString type_str;
92  nsresult nsres;
93 
94  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
95 
96  nsAString_InitDepend(&type_str, v);
97  nsres = nsIDOMHTMLStyleElement_SetType(This->nsstyle, &type_str);
98  nsAString_Finish(&type_str);
99  if(NS_FAILED(nsres)) {
100  ERR("SetType failed: %08x\n", nsres);
101  return E_FAIL;
102  }
103 
104  return S_OK;
105 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
#define E_FAIL
Definition: ddrawi.h:102
#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

◆ HTMLStyleElement_QI()

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

Definition at line 274 of file htmlstyleelem.c.

275 {
277 
278  if(IsEqualGUID(&IID_IUnknown, riid)) {
279  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
280  *ppv = &This->IHTMLStyleElement_iface;
281  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
282  TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
283  *ppv = &This->IHTMLStyleElement_iface;
284  }else if(IsEqualGUID(&IID_IHTMLStyleElement, riid)) {
285  TRACE("(%p)->(IID_IHTMLStyleElement %p)\n", This, ppv);
286  *ppv = &This->IHTMLStyleElement_iface;
287  }else {
288  return HTMLElement_QI(&This->element.node, riid, ppv);
289  }
290 
291  IUnknown_AddRef((IUnknown*)*ppv);
292  return S_OK;
293 }
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
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:59
static HTMLStyleElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ HTMLStyleElement_QueryInterface()

static HRESULT WINAPI HTMLStyleElement_QueryInterface ( IHTMLStyleElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 35 of file htmlstyleelem.c.

37 {
39 
40  return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
41 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ HTMLStyleElement_Release()

static ULONG WINAPI HTMLStyleElement_Release ( IHTMLStyleElement *  iface)
static

Definition at line 50 of file htmlstyleelem.c.

51 {
53 
54  return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
55 }
static HTMLStyleElement * impl_from_IHTMLStyleElement(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:30

◆ HTMLStyleElement_traverse()

static void HTMLStyleElement_traverse ( HTMLDOMNode iface,
nsCycleCollectionTraversalCallback cb 
)
static

Definition at line 307 of file htmlstyleelem.c.

308 {
310 
311  if(This->nsstyle)
312  note_cc_edge((nsISupports*)This->nsstyle, "This->nsstyle", cb);
313 }
static DWORD cb
Definition: integrity.c:41
static HTMLStyleElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)

◆ HTMLStyleElement_unlink()

static void HTMLStyleElement_unlink ( HTMLDOMNode iface)
static

Definition at line 315 of file htmlstyleelem.c.

316 {
318 
319  if(This->nsstyle) {
320  nsIDOMHTMLStyleElement *nsstyle = This->nsstyle;
321 
322  This->nsstyle = NULL;
323  nsIDOMHTMLStyleElement_Release(nsstyle);
324  }
325 }
smooth NULL
Definition: ftsmooth.c:416
static HTMLStyleElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)

◆ impl_from_HTMLDOMNode()

static HTMLStyleElement* impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 269 of file htmlstyleelem.c.

270 {
271  return CONTAINING_RECORD(iface, HTMLStyleElement, element.node);
272 }
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 HTMLStyleElement_destructor(), HTMLStyleElement_QI(), HTMLStyleElement_traverse(), and HTMLStyleElement_unlink().

◆ impl_from_IHTMLStyleElement()

Variable Documentation

◆ HTMLStyleElement_dispex

dispex_static_data_t HTMLStyleElement_dispex
static
Initial value:
= {
DispHTMLStyleElement_tid,
}
static const tid_t HTMLStyleElement_iface_tids[]
smooth NULL
Definition: ftsmooth.c:416

Definition at line 352 of file htmlstyleelem.c.

Referenced by HTMLStyleElement_Create().

◆ HTMLStyleElement_iface_tids

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

Definition at line 347 of file htmlstyleelem.c.

◆ HTMLStyleElementImplVtbl

const NodeImplVtbl HTMLStyleElementImplVtbl
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 HRESULT HTMLStyleElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
smooth NULL
Definition: ftsmooth.c:416
static void HTMLStyleElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
static void HTMLStyleElement_unlink(HTMLDOMNode *iface)
static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793

Definition at line 327 of file htmlstyleelem.c.

Referenced by HTMLStyleElement_Create().

◆ HTMLStyleElementVtbl

const IHTMLStyleElementVtbl HTMLStyleElementVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLStyleElement_AddRef(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:43
static HRESULT WINAPI HTMLStyleElement_Invoke(IHTMLStyleElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlstyleelem.c:79
static HRESULT WINAPI HTMLStyleElement_put_media(IHTMLStyleElement *iface, BSTR v)
static HRESULT WINAPI HTMLStyleElement_put_onreadystatechange(IHTMLStyleElement *iface, VARIANT v)
static HRESULT WINAPI HTMLStyleElement_GetTypeInfoCount(IHTMLStyleElement *iface, UINT *pctinfo)
Definition: htmlstyleelem.c:57
static HRESULT WINAPI HTMLStyleElement_put_type(IHTMLStyleElement *iface, BSTR v)
Definition: htmlstyleelem.c:88
static HRESULT WINAPI HTMLStyleElement_get_media(IHTMLStyleElement *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleElement_GetTypeInfo(IHTMLStyleElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlstyleelem.c:63
static HRESULT WINAPI HTMLStyleElement_get_disabled(IHTMLStyleElement *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLStyleElement_get_onreadystatechange(IHTMLStyleElement *iface, VARIANT *p)
static ULONG WINAPI HTMLStyleElement_Release(IHTMLStyleElement *iface)
Definition: htmlstyleelem.c:50
static HRESULT WINAPI HTMLStyleElement_get_type(IHTMLStyleElement *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleElement_GetIDsOfNames(IHTMLStyleElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlstyleelem.c:71
static HRESULT WINAPI HTMLStyleElement_put_onerror(IHTMLStyleElement *iface, VARIANT v)
static HRESULT WINAPI HTMLStyleElement_get_onerror(IHTMLStyleElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLStyleElement_get_onload(IHTMLStyleElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLStyleElement_put_disabled(IHTMLStyleElement *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLStyleElement_get_styleSheet(IHTMLStyleElement *iface, IHTMLStyleSheet **p)
static HRESULT WINAPI HTMLStyleElement_put_onload(IHTMLStyleElement *iface, VARIANT v)
static HRESULT WINAPI HTMLStyleElement_QueryInterface(IHTMLStyleElement *iface, REFIID riid, void **ppv)
Definition: htmlstyleelem.c:35
static HRESULT WINAPI HTMLStyleElement_get_readyState(IHTMLStyleElement *iface, BSTR *p)

Definition at line 245 of file htmlstyleelem.c.

Referenced by HTMLStyleElement_Create().