mshtml: Use helper for IHTMLStyle::get_left implementation.
This commit is contained in:
parent
73ed5b388a
commit
6e97e7e24c
|
@ -2171,18 +2171,10 @@ static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v)
|
||||||
static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
|
static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p)
|
||||||
{
|
{
|
||||||
HTMLStyle *This = impl_from_IHTMLStyle(iface);
|
HTMLStyle *This = impl_from_IHTMLStyle(iface);
|
||||||
BSTR ret;
|
|
||||||
HRESULT hres;
|
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, p);
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
hres = get_style_attr(This, STYLEID_LEFT, &ret);
|
return get_nsstyle_attr_var(This->nsstyle, STYLEID_LEFT, p, 0);
|
||||||
if(FAILED(hres))
|
|
||||||
return hres;
|
|
||||||
|
|
||||||
V_VT(p) = VT_BSTR;
|
|
||||||
V_BSTR(p) = ret;
|
|
||||||
return S_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
|
static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)
|
||||||
|
|
Loading…
Reference in New Issue