mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:05:51 +00:00
mshtml: Implement IHTMLStyle_get_backgroundColor.
This commit is contained in:
parent
20bd88895c
commit
6421c47986
|
@ -770,8 +770,10 @@ static HRESULT WINAPI HTMLStyle_put_backgroundColor(IHTMLStyle *iface, VARIANT v
|
||||||
static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
|
static HRESULT WINAPI HTMLStyle_get_backgroundColor(IHTMLStyle *iface, VARIANT *p)
|
||||||
{
|
{
|
||||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
V_VT(p) = VT_BSTR;
|
||||||
|
return get_style_attr(This, STYLEID_BACKGROUND_COLOR, &V_BSTR(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
|
static HRESULT WINAPI HTMLStyle_put_backgroundImage(IHTMLStyle *iface, BSTR v)
|
||||||
|
|
|
@ -2982,6 +2982,12 @@ static void test_default_style(IHTMLStyle *style)
|
||||||
test_border_styles(style, str);
|
test_border_styles(style, str);
|
||||||
SysFreeString(str);
|
SysFreeString(str);
|
||||||
|
|
||||||
|
hres = IHTMLStyle_get_backgroundColor(style, &v);
|
||||||
|
ok(hres == S_OK, "get_backgroundColor: %08x\n", hres);
|
||||||
|
ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v));
|
||||||
|
ok(!V_BSTR(&v), "str=%s\n", dbgstr_w(V_BSTR(&v)));
|
||||||
|
VariantClear(&v);
|
||||||
|
|
||||||
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle2, (void**)&style2);
|
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle2, (void**)&style2);
|
||||||
ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08x\n", hres);
|
ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08x\n", hres);
|
||||||
if(SUCCEEDED(hres)) {
|
if(SUCCEEDED(hres)) {
|
||||||
|
|
Loading…
Reference in a new issue