From 8fab9ff4e3c7facc410a25c3f570bf924eb77688 Mon Sep 17 00:00:00 2001 From: Li Zhenbo Date: Wed, 5 Mar 2014 23:52:06 +0800 Subject: [PATCH 04/10] mshtml: Added IHTMLTableRow::put_vAlign implementation. --- dlls/mshtml/htmltablerow.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmltablerow.c b/dlls/mshtml/htmltablerow.c index f024467..ed71eab 100644 --- a/dlls/mshtml/htmltablerow.c +++ b/dlls/mshtml/htmltablerow.c @@ -142,8 +142,27 @@ static HRESULT WINAPI HTMLTableRow_get_align(IHTMLTableRow *iface, BSTR *p) static HRESULT WINAPI HTMLTableRow_put_vAlign(IHTMLTableRow *iface, BSTR v) { HTMLTableRow *This = impl_from_IHTMLTableRow(iface); - FIXME("(%p)->(%s)\n", This, debugstr_w(v)); - return E_NOTIMPL; + nsAString val; + BOOL ret; + nsresult nsres; + + TRACE("(%p)->(%s)\n", This, debugstr_w(v)); + + ret = nsAString_Init(&val, v); + if (!ret){ + ERR("nsAString_Init(%s) failed!\n", debugstr_w(v)); + return E_FAIL; + } + + nsres = nsIDOMHTMLTableRowElement_SetVAlign(This->nsrow, &val); + if (NS_FAILED(nsres)){ + ERR("Set VAlign(%s) failed!\n", debugstr_w(v)); + nsAString_Finish(&val); + return E_FAIL; + } + + nsAString_Finish(&val); + return S_OK; } static HRESULT WINAPI HTMLTableRow_get_vAlign(IHTMLTableRow *iface, BSTR *p) -- 1.8.3.1