Module: wine Branch: master Commit: c32ae1b34a6738d18f571987c628170c15043fb8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c32ae1b34a6738d18f571987c6...
Author: Zhenbo Li litimetal@gmail.com Date: Tue Mar 18 13:14:07 2014 +0800
mshtml: Added IHTMLTableRow::sectionRowIndex property implementation.
---
dlls/mshtml/htmltablerow.c | 15 +++++++++++---- dlls/mshtml/tests/dom.c | 5 +++++ 2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmltablerow.c b/dlls/mshtml/htmltablerow.c index b475e7d..f93a606 100644 --- a/dlls/mshtml/htmltablerow.c +++ b/dlls/mshtml/htmltablerow.c @@ -237,11 +237,18 @@ static HRESULT WINAPI HTMLTableRow_get_rowIndex(IHTMLTableRow *iface, LONG *p) return S_OK; }
-static HRESULT WINAPI HTMLTableRow_get_selectionRowIndex(IHTMLTableRow *iface, LONG *p) +static HRESULT WINAPI HTMLTableRow_get_sectionRowIndex(IHTMLTableRow *iface, LONG *p) { HTMLTableRow *This = impl_from_IHTMLTableRow(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + nsres = nsIDOMHTMLTableRowElement_GetSectionRowIndex(This->nsrow, p); + if(NS_FAILED(nsres)) { + ERR("Get selectionRowIndex failed: %08x\n", nsres); + return E_FAIL; + } + return S_OK; }
static HRESULT WINAPI HTMLTableRow_get_cells(IHTMLTableRow *iface, IHTMLElementCollection **p) @@ -299,7 +306,7 @@ static const IHTMLTableRowVtbl HTMLTableRowVtbl = { HTMLTableRow_put_borderColorDark, HTMLTableRow_get_borderColorDark, HTMLTableRow_get_rowIndex, - HTMLTableRow_get_selectionRowIndex, + HTMLTableRow_get_sectionRowIndex, HTMLTableRow_get_cells, HTMLTableRow_insertCell, HTMLTableRow_deleteCell diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 670f5c7..2a96ad8 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5623,6 +5623,11 @@ static void test_tr_elem(IHTMLElement *elem) ok(hres == S_OK, "get_rowIndex failed: %08x\n", hres); ok(lval == 1, "get_rowIndex returned %d\n", lval);
+ lval = 0xdeadbeef; + hres = IHTMLTableRow_get_sectionRowIndex(row, &lval); + ok(hres == S_OK, "get_sectionRowIndex failed: %08x\n", hres); + ok(lval == 1, "get_sectionRowIndex returned %d\n", lval); + IHTMLTableRow_Release(row); }