mshtml: Added IHTMLCSSStyleDeclaration stub implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Jacek Caban 2018-08-31 16:36:24 +02:00 committed by Alexandre Julliard
parent ed14aa9af7
commit ddf29f93bb
4 changed files with 3075 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,7 @@ struct HTMLStyle {
IHTMLStyle4 IHTMLStyle4_iface;
IHTMLStyle5 IHTMLStyle5_iface;
IHTMLStyle6 IHTMLStyle6_iface;
IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface;
LONG ref;

View File

@ -147,6 +147,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLBodyElement) \
XIID(IHTMLBodyElement2) \
XIID(IHTMLButtonElement) \
XIID(IHTMLCSSStyleDeclaration) \
XIID(IHTMLCommentElement) \
XIID(IHTMLCurrentStyle) \
XIID(IHTMLCurrentStyle2) \

View File

@ -738,6 +738,7 @@ static void test_style6(IHTMLStyle6 *style)
static void test_body_style(IHTMLStyle *style)
{
IHTMLCSSStyleDeclaration *css_style;
IHTMLStyle2 *style2;
IHTMLStyle3 *style3;
IHTMLStyle4 *style4;
@ -753,6 +754,10 @@ static void test_body_style(IHTMLStyle *style)
LONG l;
VARIANT vDefault;
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLCSSStyleDeclaration, (void**)&css_style);
ok(hres == S_OK || broken(!is_ie9plus && hres == E_NOINTERFACE),
"Could not get IHTMLCSSStyleDeclaration interface: %08x\n", hres);
test_style_csstext(style, NULL);
hres = IHTMLStyle_get_position(style, &str);
@ -2703,6 +2708,9 @@ static void test_body_style(IHTMLStyle *style)
}else {
win_skip("IHTMLStyle6 not available\n");
}
if(css_style)
IHTMLCSSStyleDeclaration_Release(css_style);
}
#define test_style_filter(a,b) _test_style_filter(__LINE__,a,b)