mshtml: Added IHTMLCSSStyleDeclaration stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ed14aa9af7
commit
ddf29f93bb
File diff suppressed because it is too large
Load Diff
|
@ -24,6 +24,7 @@ struct HTMLStyle {
|
|||
IHTMLStyle4 IHTMLStyle4_iface;
|
||||
IHTMLStyle5 IHTMLStyle5_iface;
|
||||
IHTMLStyle6 IHTMLStyle6_iface;
|
||||
IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface;
|
||||
|
||||
LONG ref;
|
||||
|
||||
|
|
|
@ -147,6 +147,7 @@ typedef struct EventTarget EventTarget;
|
|||
XIID(IHTMLBodyElement) \
|
||||
XIID(IHTMLBodyElement2) \
|
||||
XIID(IHTMLButtonElement) \
|
||||
XIID(IHTMLCSSStyleDeclaration) \
|
||||
XIID(IHTMLCommentElement) \
|
||||
XIID(IHTMLCurrentStyle) \
|
||||
XIID(IHTMLCurrentStyle2) \
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue