mshtml: Implement IHTMLStyle_put_textDecorationLineThrough.
This commit is contained in:
parent
0bd62fddfa
commit
957a50aa72
|
@ -955,8 +955,10 @@ static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VA
|
||||||
static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
|
static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||||
{
|
{
|
||||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||||
FIXME("(%p)->(%x)\n", This, v);
|
|
||||||
return E_NOTIMPL;
|
TRACE("(%p)->(%x)\n", This, v);
|
||||||
|
|
||||||
|
return set_style_attr(This, STYLEID_TEXT_DECORATION, v ? valLineThrough : emptyW, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL *p)
|
||||||
|
|
|
@ -2566,6 +2566,17 @@ static void test_default_style(IHTMLStyle *style)
|
||||||
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);
|
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);
|
||||||
ok(b == VARIANT_FALSE, "textDecorationLineThrough = %x\n", b);
|
ok(b == VARIANT_FALSE, "textDecorationLineThrough = %x\n", b);
|
||||||
|
|
||||||
|
hres = IHTMLStyle_put_textDecorationLineThrough(style, VARIANT_TRUE);
|
||||||
|
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);
|
||||||
|
ok(b == VARIANT_FALSE, "textDecorationLineThrough = %x\n", b);
|
||||||
|
|
||||||
|
hres = IHTMLStyle_get_textDecorationLineThrough(style, &b);
|
||||||
|
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);
|
||||||
|
ok(b == VARIANT_TRUE, "textDecorationLineThrough = %x\n", b);
|
||||||
|
|
||||||
|
hres = IHTMLStyle_put_textDecorationLineThrough(style, VARIANT_FALSE);
|
||||||
|
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);
|
||||||
|
|
||||||
hres = IHTMLStyle_get_posWidth(style, NULL);
|
hres = IHTMLStyle_get_posWidth(style, NULL);
|
||||||
ok(hres == E_POINTER, "get_posWidth failed: %08x\n", hres);
|
ok(hres == E_POINTER, "get_posWidth failed: %08x\n", hres);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue