Jacek Caban : mshtml: Use helper for IHTMLStyle::get_height implementation.
Alexandre Julliard
julliard at winehq.org
Wed Apr 4 13:07:05 CDT 2012
Module: wine
Branch: master
Commit: 9529fdb94f28004fc3f026d0e7e181ea7619f01f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9529fdb94f28004fc3f026d0e7e181ea7619f01f
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Apr 4 10:30:59 2012 +0200
mshtml: Use helper for IHTMLStyle::get_height implementation.
---
dlls/mshtml/htmlstyle.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 68a2c6b..e23cd65 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -2001,18 +2001,10 @@ static HRESULT WINAPI HTMLStyle_put_height(IHTMLStyle *iface, VARIANT v)
static HRESULT WINAPI HTMLStyle_get_height(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_HEIGHT, &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_HEIGHT, p, 0);
}
static HRESULT WINAPI HTMLStyle_put_styleFloat(IHTMLStyle *iface, BSTR v)
More information about the wine-cvs
mailing list