mshtml: Added IHTMLTableRow::sectionRowIndex property implementation.
This commit is contained in:
parent
0e90cebce0
commit
c32ae1b34a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue