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