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