mshtml: Implement IHTMLCurrentStyle_get_zIndex.
This commit is contained in:
parent
1a6c759e1d
commit
18c7f48865
|
@ -393,8 +393,8 @@ static HRESULT WINAPI HTMLCurrentStyle_get_visibility(IHTMLCurrentStyle *iface,
|
|||
static HRESULT WINAPI HTMLCurrentStyle_get_zIndex(IHTMLCurrentStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_Z_INDEX, p, ATTR_STR_TO_INT);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCurrentStyle_get_letterSpacing(IHTMLCurrentStyle *iface, VARIANT *p)
|
||||
|
|
|
@ -2475,6 +2475,12 @@ static void test_current_style(IHTMLCurrentStyle *current_style)
|
|||
ok(hres == S_OK, "get_paddingLeft failed: %08x\n", hres);
|
||||
ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v));
|
||||
VariantClear(&v);
|
||||
|
||||
hres = IHTMLCurrentStyle_get_zIndex(current_style, &v);
|
||||
ok(hres == S_OK, "get_zIndex failed: %08x\n", hres);
|
||||
ok(V_VT(&v) == VT_I4, "V_VT(v) = %d\n", V_VT(&v));
|
||||
ok( V_I4(&v) == 1, "expect 1 got (%d)\n", V_I4(&v));
|
||||
VariantClear(&v);
|
||||
}
|
||||
|
||||
static void test_style2(IHTMLStyle2 *style2)
|
||||
|
|
Loading…
Reference in New Issue