mshtml: Add IHTMLCSSStyleDeclaration2 stub implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-09-06 16:15:35 +02:00 committed by Alexandre Julliard
parent 619e15a3e6
commit f072744bc5
4 changed files with 1908 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -25,6 +25,7 @@ struct HTMLStyle {
IHTMLStyle5 IHTMLStyle5_iface;
IHTMLStyle6 IHTMLStyle6_iface;
IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface;
IHTMLCSSStyleDeclaration2 IHTMLCSSStyleDeclaration2_iface;
LONG ref;

View file

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

View file

@ -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);
}