mshtml: Added IHTMLCurrentStyle2::get_filter implementation.
This commit is contained in:
parent
348338257b
commit
57b2075af8
|
@ -42,6 +42,7 @@ struct HTMLCurrentStyle {
|
||||||
LONG ref;
|
LONG ref;
|
||||||
|
|
||||||
nsIDOMCSSStyleDeclaration *nsstyle;
|
nsIDOMCSSStyleDeclaration *nsstyle;
|
||||||
|
HTMLElement *elem;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle(IHTMLCurrentStyle *iface)
|
static inline HTMLCurrentStyle *impl_from_IHTMLCurrentStyle(IHTMLCurrentStyle *iface)
|
||||||
|
@ -118,6 +119,7 @@ static ULONG WINAPI HTMLCurrentStyle_Release(IHTMLCurrentStyle *iface)
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
if(This->nsstyle)
|
if(This->nsstyle)
|
||||||
nsIDOMCSSStyleDeclaration_Release(This->nsstyle);
|
nsIDOMCSSStyleDeclaration_Release(This->nsstyle);
|
||||||
|
IHTMLElement_Release(&This->elem->IHTMLElement_iface);
|
||||||
release_dispex(&This->dispex);
|
release_dispex(&This->dispex);
|
||||||
heap_free(This);
|
heap_free(This);
|
||||||
}
|
}
|
||||||
|
@ -1054,8 +1056,18 @@ static HRESULT WINAPI HTMLCurrentStyle2_get_zoom(IHTMLCurrentStyle2 *iface, VARI
|
||||||
static HRESULT WINAPI HTMLCurrentStyle2_get_filter(IHTMLCurrentStyle2 *iface, BSTR *p)
|
static HRESULT WINAPI HTMLCurrentStyle2_get_filter(IHTMLCurrentStyle2 *iface, BSTR *p)
|
||||||
{
|
{
|
||||||
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle2(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
|
||||||
return E_NOTIMPL;
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
if(This->elem->filter) {
|
||||||
|
*p = SysAllocString(This->elem->filter);
|
||||||
|
if(!*p)
|
||||||
|
return E_OUTOFMEMORY;
|
||||||
|
}else {
|
||||||
|
*p = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLCurrentStyle2_get_textAlignLast(IHTMLCurrentStyle2 *iface, BSTR *p)
|
static HRESULT WINAPI HTMLCurrentStyle2_get_textAlignLast(IHTMLCurrentStyle2 *iface, BSTR *p)
|
||||||
|
@ -1349,6 +1361,9 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
|
||||||
|
|
||||||
init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLCurrentStyle_iface, &HTMLCurrentStyle_dispex);
|
init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLCurrentStyle_iface, &HTMLCurrentStyle_dispex);
|
||||||
|
|
||||||
|
IHTMLElement_AddRef(&elem->IHTMLElement_iface);
|
||||||
|
ret->elem = elem;
|
||||||
|
|
||||||
*p = &ret->IHTMLCurrentStyle_iface;
|
*p = &ret->IHTMLCurrentStyle_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue