static HRESULT WINAPI HTMLStyleElement_GetTypeInfo(IHTMLStyleElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo); }
static HRESULT WINAPI HTMLStyleElement_GetIDsOfNames(IHTMLStyleElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames, cNames, lcid, rgDispId); }
static HRESULT WINAPI HTMLStyleElement_get_styleSheet(IHTMLStyleElement *iface, IHTMLStyleSheet **p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); TRACE("(%p)->(%p)\n", This, p); if(!This->nsstyle) return E_FAIL; if(!This->style_sheet) { nsIDOMStyleSheet *ss; nsresult nsres; nsres = nsIDOMHTMLStyleElement_GetDOMStyleSheet(This->nsstyle, &ss); assert(nsres == NS_OK); if(ss) { This->style_sheet = HTMLStyleSheet_Create(ss); nsIDOMStyleSheet_Release(ss); if(!This->style_sheet) return E_OUTOFMEMORY; } } if(This->style_sheet) IHTMLStyleSheet_AddRef(This->style_sheet); *p = This->style_sheet; return S_OK; }
static HRESULT WINAPI HTMLStyleElement_QueryInterface(IHTMLStyleElement *iface, REFIID riid, void **ppv) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv); }
static HRESULT WINAPI HTMLStyleElement_Invoke(IHTMLStyleElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); }
static HRESULT WINAPI HTMLStyleElement_get_media(IHTMLStyleElement *iface, BSTR *p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); nsAString nsstr; nsresult nsres; TRACE("(%p)->(%p)\n", This, p); nsAString_Init(&nsstr, NULL); nsres = nsIDOMHTMLStyleElement_GetMedia(This->nsstyle, &nsstr); return return_nsstr(nsres, &nsstr, p); }
static HRESULT WINAPI HTMLStyleElement_put_media(IHTMLStyleElement *iface, BSTR v) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); nsAString media_str; nsresult nsres; TRACE("(%p)->(%s)\n", This, debugstr_w(v)); nsAString_InitDepend(&media_str, v); nsres = nsIDOMHTMLStyleElement_SetMedia(This->nsstyle, &media_str); nsAString_Finish(&media_str); if(NS_FAILED(nsres)) { ERR("SetMedia failed: %08x\n", nsres); return E_FAIL; } return S_OK; }
static HRESULT WINAPI HTMLStyleElement_GetTypeInfoCount(IHTMLStyleElement *iface, UINT *pctinfo) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo); }
static ULONG WINAPI HTMLStyleElement_Release(IHTMLStyleElement *iface) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface); }
static HRESULT WINAPI HTMLStyleElement_get_disabled(IHTMLStyleElement *iface, VARIANT_BOOL *p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLStyleElement_put_onerror(IHTMLStyleElement *iface, VARIANT v) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); FIXME("(%p)->(%s)\n", This, debugstr_variant(&v)); return E_NOTIMPL; }
static HRESULT WINAPI HTMLStyleElement_get_onreadystatechange(IHTMLStyleElement *iface, VARIANT *p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLStyleElement_get_readyState(IHTMLStyleElement *iface, BSTR *p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }
static HRESULT WINAPI HTMLStyleElement_get_styleSheet(IHTMLStyleElement *iface, IHTMLStyleSheet **p) { HTMLStyleElement *This = impl_from_IHTMLStyleElement(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; }