Commit ddf29f93 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLCSSStyleDeclaration stub implementation.

parent ed14aa9a
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment