mshtml: IID_IHTMLCurrentStyle4 isn't supported on IE6.

This commit is contained in:
Alistair Leslie-Hughes 2011-09-26 20:19:45 +10:00 committed by Alexandre Julliard
parent 5df9ff3aa9
commit f8baa37052
1 changed files with 12 additions and 1 deletions

View File

@ -365,7 +365,6 @@ static const IID * const cstyle_iids[] = {
&IID_IHTMLCurrentStyle,
&IID_IHTMLCurrentStyle2,
&IID_IHTMLCurrentStyle3,
&IID_IHTMLCurrentStyle4,
NULL
};
@ -4568,8 +4567,20 @@ static void test_defaults(IHTMLDocument2 *doc)
hres = IHTMLElement2_get_currentStyle(elem2, &cstyle);
ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres);
if(SUCCEEDED(hres)) {
IUnknown *unk;
test_disp((IUnknown*)cstyle, &DIID_DispHTMLCurrentStyle, "[object]");
test_ifaces((IUnknown*)cstyle, cstyle_iids);
hres = IHTMLCurrentStyle_QueryInterface(cstyle, &IID_IHTMLCurrentStyle4, (void**)&unk);
if(SUCCEEDED(hres))
IUnknown_Release(unk);
else
{
/*IE6 doesn't have interface */
win_skip("IID_IHTMLCurrentStyle4 not supported\n");
}
IHTMLCurrentStyle_Release(cstyle);
}
IHTMLElement2_Release(elem2);