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

mshtml: Add IHTMLCSSStyleDeclaration2 stub implementation.

parent 619e15a3
......@@ -25,6 +25,7 @@ struct HTMLStyle {
IHTMLStyle5 IHTMLStyle5_iface;
IHTMLStyle6 IHTMLStyle6_iface;
IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface;
IHTMLCSSStyleDeclaration2 IHTMLCSSStyleDeclaration2_iface;
LONG ref;
......
......@@ -148,6 +148,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLBodyElement2) \
XIID(IHTMLButtonElement) \
XIID(IHTMLCSSStyleDeclaration) \
XIID(IHTMLCSSStyleDeclaration2) \
XIID(IHTMLCommentElement) \
XIID(IHTMLCurrentStyle) \
XIID(IHTMLCurrentStyle2) \
......
......@@ -806,6 +806,7 @@ static void test_css_style_declaration(IHTMLCSSStyleDeclaration *css_style)
static void test_body_style(IHTMLStyle *style)
{
IHTMLCSSStyleDeclaration *css_style;
IHTMLCSSStyleDeclaration2 *css_style2 = NULL;
IHTMLStyle2 *style2;
IHTMLStyle3 *style3;
IHTMLStyle4 *style4;
......@@ -825,6 +826,12 @@ static void test_body_style(IHTMLStyle *style)
ok(hres == S_OK || broken(!is_ie9plus && hres == E_NOINTERFACE),
"Could not get IHTMLCSSStyleDeclaration interface: %08x\n", hres);
if(css_style) {
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLCSSStyleDeclaration2, (void**)&css_style2);
ok(hres == S_OK || broken(hres == E_NOINTERFACE),
"Could not get IHTMLCSSStyleDeclaration2 interface: %08x\n", hres);
}
test_style_csstext(style, NULL);
hres = IHTMLStyle_get_position(style, &str);
......@@ -2895,6 +2902,8 @@ static void test_body_style(IHTMLStyle *style)
if(compat_mode >= COMPAT_IE9)
test_css_style_declaration(css_style);
if(css_style2)
IHTMLCSSStyleDeclaration2_Release(css_style2);
if(css_style)
IHTMLCSSStyleDeclaration_Release(css_style);
}
......
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