mshtml: Added IHTMLTableRow::sectionRowIndex property implementation.

This commit is contained in:
Zhenbo Li 2014-03-18 13:14:07 +08:00 committed by Alexandre Julliard
parent 0e90cebce0
commit c32ae1b34a
2 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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);
}