61 *
ppv = &
This->IHTMLStyleSheetRulesCollection_iface;
63 *
ppv = &
This->IHTMLStyleSheetRulesCollection_iface;
96 nsIDOMCSSRuleList_Release(
This->nslist);
104 IHTMLStyleSheetRulesCollection *iface,
UINT *pctinfo)
107 return IDispatchEx_GetTypeInfoCount(&
This->dispex.IDispatchEx_iface, pctinfo);
114 return IDispatchEx_GetTypeInfo(&
This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
121 return IDispatchEx_GetIDsOfNames(&
This->dispex.IDispatchEx_iface,
riid, rgszNames, cNames,
127 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
130 return IDispatchEx_Invoke(&
This->dispex.IDispatchEx_iface, dispIdMember,
riid, lcid,
wFlags,
131 pDispParams, pVarResult, pExcepInfo, puArgErr);
145 nsres = nsIDOMCSSRuleList_GetLength(
This->nslist, &
len);
147 ERR(
"GetLength failed: %08x\n", nsres);
155 LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
175 IHTMLStyleSheetRulesCollection_tid,
180 DispHTMLStyleSheetRulesCollection_tid,
192 ret->nslist = nslist;
197 nsIDOMCSSRuleList_AddRef(nslist);
199 return &
ret->IHTMLStyleSheetRulesCollection_iface;
215 *
ppv = &
This->IHTMLStyleSheetsCollection_iface;
217 *
ppv = &
This->IHTMLStyleSheetsCollection_iface;
219 *
ppv = &
This->IHTMLStyleSheetsCollection_iface;
252 nsIDOMStyleSheetList_Release(
This->nslist);
263 return IDispatchEx_GetTypeInfoCount(&
This->dispex.IDispatchEx_iface, pctinfo);
270 return IDispatchEx_GetTypeInfo(&
This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
277 return IDispatchEx_GetIDsOfNames(&
This->dispex.IDispatchEx_iface,
riid, rgszNames, cNames,
283 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
286 return IDispatchEx_Invoke(&
This->dispex.IDispatchEx_iface, dispIdMember,
riid, lcid,
287 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
299 nsIDOMStyleSheetList_GetLength(
This->nslist, &
len);
320 switch(
V_VT(pvarIndex)) {
327 nsres = nsIDOMStyleSheetList_Item(
This->nslist,
V_I4(pvarIndex), &nsstylesheet);
329 WARN(
"Item failed: %08x\n", nsres);
365 IHTMLStyleSheetsCollection_tid,
370 DispHTMLStyleSheetsCollection_tid,
383 nsIDOMStyleSheetList_AddRef(nslist);
384 ret->nslist = nslist;
389 return &
ret->IHTMLStyleSheetsCollection_iface;
404 *
ppv = &
This->IHTMLStyleSheet_iface;
406 *
ppv = &
This->IHTMLStyleSheet_iface;
408 *
ppv = &
This->IHTMLStyleSheet_iface;
440 if(
This->nsstylesheet)
441 nsIDOMCSSStyleSheet_Release(
This->nsstylesheet);
452 return IDispatchEx_GetTypeInfoCount(&
This->dispex.IDispatchEx_iface, pctinfo);
459 return IDispatchEx_GetTypeInfo(&
This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
467 return IDispatchEx_GetIDsOfNames(&
This->dispex.IDispatchEx_iface,
riid, rgszNames, cNames, lcid, rgDispId);
472 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
475 return IDispatchEx_Invoke(&
This->dispex.IDispatchEx_iface, dispIdMember,
riid, lcid,
wFlags, pDispParams,
476 pVarResult, pExcepInfo, puArgErr);
530 IHTMLStyleSheetsCollection **
p)
553 nsres = nsIDOMCSSStyleSheet_GetHref(
This->nsstylesheet, &href_str);
624 nsres = nsIDOMCSSStyleSheet_DeleteRule(
This->nsstylesheet, 0);
633 nsres = nsIDOMCSSStyleSheet_InsertRule(
This->nsstylesheet, &nsstr, 0, &
idx);
636 FIXME(
"InsertRule failed for string %s. Probably multiple rules passed.\n",
debugstr_w(
v));
655 nsres = nsIDOMCSSStyleSheet_GetCssRules(
This->nsstylesheet, &nslist);
657 ERR(
"GetCssRules failed: %08x\n", nsres);
661 nsres = nsIDOMCSSRuleList_GetLength(nslist, &
len);
665 nsres = nsIDOMCSSRuleList_Item(nslist, 0, &nsrule);
667 ERR(
"Item failed: %08x\n", nsres);
670 nsIDOMCSSRuleList_Release(nslist);
680 nsres = nsIDOMCSSRule_GetCssText(nsrule, &nsstr);
681 nsIDOMCSSRule_Release(nsrule);
686 IHTMLStyleSheetRulesCollection **
p)
694 nsres = nsIDOMCSSStyleSheet_GetCssRules(
This->nsstylesheet, &nslist);
696 ERR(
"GetCssRules failed: %08x\n", nsres);
741 DispHTMLStyleSheet_tid,
758 nsres = nsIDOMStyleSheet_QueryInterface(nsstylesheet, &IID_nsIDOMCSSStyleSheet,
759 (
void**)&
ret->nsstylesheet);
761 ERR(
"Could not get nsICSSStyleSheet interface: %08x\n", nsres);
764 return &
ret->IHTMLStyleSheet_iface;
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
const char * debugstr_mshtml_guid(const GUID *iid)
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfo(IHTMLStyleSheet *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLStyleSheet_get_href(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_get_cssText(IHTMLStyleSheet *iface, BSTR *p)
static ULONG WINAPI HTMLStyleSheetRulesCollection_Release(IHTMLStyleSheetRulesCollection *iface)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetIDsOfNames(IHTMLStyleSheetRulesCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static const tid_t HTMLStyleSheetsCollection_iface_tids[]
static HRESULT WINAPI HTMLStyleSheetsCollection_get__newEnum(IHTMLStyleSheetsCollection *iface, IUnknown **p)
static HRESULT WINAPI HTMLStyleSheet_put_cssText(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_addImport(IHTMLStyleSheet *iface, BSTR bstrURL, LONG lIndex, LONG *plIndex)
static HRESULT WINAPI HTMLStyleSheetsCollection_QueryInterface(IHTMLStyleSheetsCollection *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLStyleSheet_QueryInterface(IHTMLStyleSheet *iface, REFIID riid, void **ppv)
IHTMLStyleSheetsCollection * HTMLStyleSheetsCollection_Create(nsIDOMStyleSheetList *nslist)
static HRESULT WINAPI HTMLStyleSheet_addRule(IHTMLStyleSheet *iface, BSTR bstrSelector, BSTR bstrStyle, LONG lIndex, LONG *plIndex)
static const IHTMLStyleSheetsCollectionVtbl HTMLStyleSheetsCollectionVtbl
static ULONG WINAPI HTMLStyleSheetsCollection_AddRef(IHTMLStyleSheetsCollection *iface)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_Invoke(IHTMLStyleSheetRulesCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static ULONG WINAPI HTMLStyleSheetRulesCollection_AddRef(IHTMLStyleSheetRulesCollection *iface)
static HRESULT WINAPI HTMLStyleSheetsCollection_get_length(IHTMLStyleSheetsCollection *iface, LONG *p)
static HRESULT WINAPI HTMLStyleSheet_get_id(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_get_type(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfoCount(IHTMLStyleSheetRulesCollection *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLStyleSheet_get_title(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_GetIDsOfNames(IHTMLStyleSheet *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HTMLStyleSheet * impl_from_IHTMLStyleSheet(IHTMLStyleSheet *iface)
static HRESULT WINAPI HTMLStyleSheet_put_title(IHTMLStyleSheet *iface, BSTR v)
IHTMLStyleSheet * HTMLStyleSheet_Create(nsIDOMStyleSheet *nsstylesheet)
static HRESULT WINAPI HTMLStyleSheet_removeImport(IHTMLStyleSheet *iface, LONG lIndex)
static dispex_static_data_t HTMLStyleSheetsCollection_dispex
static HRESULT WINAPI HTMLStyleSheetRulesCollection_QueryInterface(IHTMLStyleSheetRulesCollection *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLStyleSheet_Invoke(IHTMLStyleSheet *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static const IHTMLStyleSheetVtbl HTMLStyleSheetVtbl
static HRESULT WINAPI HTMLStyleSheet_get_owningElement(IHTMLStyleSheet *iface, IHTMLElement **p)
static HRESULT WINAPI HTMLStyleSheet_GetTypeInfoCount(IHTMLStyleSheet *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLStyleSheetsCollection_Invoke(IHTMLStyleSheetsCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLStyleSheet_get_media(IHTMLStyleSheet *iface, BSTR *p)
static HRESULT WINAPI HTMLStyleSheet_put_href(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRulesCollection *iface, LONG *p)
static HTMLStyleSheetRulesCollection * impl_from_IHTMLStyleSheetRulesCollection(IHTMLStyleSheetRulesCollection *iface)
static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCollection *iface, LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
static IHTMLStyleSheetRulesCollection * HTMLStyleSheetRulesCollection_Create(nsIDOMCSSRuleList *nslist)
static HRESULT WINAPI HTMLStyleSheet_put_disabled(IHTMLStyleSheet *iface, VARIANT_BOOL v)
static const tid_t HTMLStyleSheetRulesCollection_iface_tids[]
static HRESULT WINAPI HTMLStyleSheet_get_imports(IHTMLStyleSheet *iface, IHTMLStyleSheetsCollection **p)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetIDsOfNames(IHTMLStyleSheetsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static const IHTMLStyleSheetRulesCollectionVtbl HTMLStyleSheetRulesCollectionVtbl
static HRESULT WINAPI HTMLStyleSheetRulesCollection_GetTypeInfo(IHTMLStyleSheetRulesCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static dispex_static_data_t HTMLStyleSheetRulesCollection_dispex
static HTMLStyleSheetsCollection * impl_from_IHTMLStyleSheetsCollection(IHTMLStyleSheetsCollection *iface)
static ULONG WINAPI HTMLStyleSheet_AddRef(IHTMLStyleSheet *iface)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfoCount(IHTMLStyleSheetsCollection *iface, UINT *pctinfo)
static dispex_static_data_t HTMLStyleSheet_dispex
static HRESULT WINAPI HTMLStyleSheet_get_disabled(IHTMLStyleSheet *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLStyleSheet_removeRule(IHTMLStyleSheet *iface, LONG lIndex)
static HRESULT WINAPI HTMLStyleSheet_put_media(IHTMLStyleSheet *iface, BSTR v)
static HRESULT WINAPI HTMLStyleSheet_get_parentStyleSheet(IHTMLStyleSheet *iface, IHTMLStyleSheet **p)
static HRESULT WINAPI HTMLStyleSheetsCollection_item(IHTMLStyleSheetsCollection *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
static HRESULT WINAPI HTMLStyleSheetsCollection_GetTypeInfo(IHTMLStyleSheetsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static ULONG WINAPI HTMLStyleSheet_Release(IHTMLStyleSheet *iface)
static HRESULT WINAPI HTMLStyleSheet_get_readOnly(IHTMLStyleSheet *iface, VARIANT_BOOL *p)
static const tid_t HTMLStyleSheet_iface_tids[]
static HRESULT WINAPI HTMLStyleSheet_get_rules(IHTMLStyleSheet *iface, IHTMLStyleSheetRulesCollection **p)
static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection *iface)
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 VARIANTARG static DISPID
void release_dispex(DispatchEx *This)
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
#define NS_SUCCEEDED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
#define IsEqualGUID(rguid1, rguid2)
IHTMLStyleSheetRulesCollection IHTMLStyleSheetRulesCollection_iface
nsIDOMCSSRuleList * nslist
nsIDOMCSSStyleSheet * nsstylesheet
IHTMLStyleSheet IHTMLStyleSheet_iface
nsIDOMStyleSheetList * nslist
IHTMLStyleSheetsCollection IHTMLStyleSheetsCollection_iface
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags