From bfa21bef2ee63545f8e6b7424f8f23bbc726e37b Mon Sep 17 00:00:00 2001 From: Li Zhenbo Date: Fri, 28 Feb 2014 18:21:11 +0800 Subject: [PATCH 01/10] mshtml: Added IHTMLTableRow::put_align 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 7274ded..80994b5 100644 --- a/dlls/mshtml/htmltablerow.c +++ b/dlls/mshtml/htmltablerow.c @@ -102,8 +102,27 @@ static HRESULT WINAPI HTMLTableRow_Invoke(IHTMLTableRow *iface, DISPID dispIdMem static HRESULT WINAPI HTMLTableRow_put_align(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_SetAlign(This->nsrow, &val); + if (NS_FAILED(nsres)){ + ERR("Set Align(%s) failed!\n", debugstr_w(v)); + nsAString_Finish(&val); + return E_FAIL; + } + + nsAString_Finish(&val); + return S_OK; } static HRESULT WINAPI HTMLTableRow_get_align(IHTMLTableRow *iface, BSTR *p) -- 1.8.3.1