mshtml: Added IHTMLTable::frame property implementation.
This commit is contained in:
parent
bc582f09ff
commit
03b377f3e7
@ -193,15 +193,34 @@ static HRESULT WINAPI HTMLTable_get_border(IHTMLTable *iface, VARIANT *p)
|
|||||||
static HRESULT WINAPI HTMLTable_put_frame(IHTMLTable *iface, BSTR v)
|
static HRESULT WINAPI HTMLTable_put_frame(IHTMLTable *iface, BSTR v)
|
||||||
{
|
{
|
||||||
HTMLTable *This = impl_from_IHTMLTable(iface);
|
HTMLTable *This = impl_from_IHTMLTable(iface);
|
||||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
nsAString str;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||||
|
|
||||||
|
nsAString_InitDepend(&str, v);
|
||||||
|
nsres = nsIDOMHTMLTableElement_SetFrame(This->nstable, &str);
|
||||||
|
nsAString_Finish(&str);
|
||||||
|
|
||||||
|
if (NS_FAILED(nsres)) {
|
||||||
|
ERR("SetFrame(%s) failed: %08x\n", debugstr_w(v), nsres);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLTable_get_frame(IHTMLTable *iface, BSTR *p)
|
static HRESULT WINAPI HTMLTable_get_frame(IHTMLTable *iface, BSTR *p)
|
||||||
{
|
{
|
||||||
HTMLTable *This = impl_from_IHTMLTable(iface);
|
HTMLTable *This = impl_from_IHTMLTable(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
nsAString str;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsAString_Init(&str, NULL);
|
||||||
|
nsres = nsIDOMHTMLTableElement_GetFrame(This->nstable, &str);
|
||||||
|
|
||||||
|
return return_nsstr(nsres, &str, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLTable_put_rules(IHTMLTable *iface, BSTR v)
|
static HRESULT WINAPI HTMLTable_put_rules(IHTMLTable *iface, BSTR v)
|
||||||
|
@ -6205,8 +6205,17 @@ static void test_table_elem(IHTMLElement *elem)
|
|||||||
ok(!strcmp_wa(V_BSTR(&v), "11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v)));
|
ok(!strcmp_wa(V_BSTR(&v), "11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v)));
|
||||||
VariantClear(&v);
|
VariantClear(&v);
|
||||||
|
|
||||||
test_table_modify(table);
|
|
||||||
|
|
||||||
|
bstr = a2bstr("box");
|
||||||
|
hres = IHTMLTable_put_frame(table, bstr);
|
||||||
|
ok(hres == S_OK, "put_frame = %08x\n", hres);
|
||||||
|
SysFreeString(bstr);
|
||||||
|
hres = IHTMLTable_get_frame(table, &bstr);
|
||||||
|
ok(hres == S_OK, "get_frame = %08x\n", hres);
|
||||||
|
ok(!strcmp_wa(bstr, "box"), "Expected box, got %s\n", wine_dbgstr_w(bstr));
|
||||||
|
SysFreeString(bstr);
|
||||||
|
|
||||||
|
test_table_modify(table);
|
||||||
bstr = a2bstr("summary");
|
bstr = a2bstr("summary");
|
||||||
hres = IHTMLTable3_put_summary(table3, bstr);
|
hres = IHTMLTable3_put_summary(table3, bstr);
|
||||||
ok(hres == S_OK, "put_summary = %08x\n", hres);
|
ok(hres == S_OK, "put_summary = %08x\n", hres);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user