mshtml: Add IHTMLCSSStyleDeclaration2::columnRuleStyle property semi-stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fe886e6eed
commit
647424e4bd
|
@ -568,6 +568,11 @@ static const style_tbl_entry_t style_tbl[] = {
|
|||
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULECOLOR,
|
||||
DISPID_UNKNOWN
|
||||
},
|
||||
{
|
||||
L"column-rule-style",
|
||||
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULESTYLE,
|
||||
DISPID_UNKNOWN
|
||||
},
|
||||
{
|
||||
L"column-span",
|
||||
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNSPAN,
|
||||
|
@ -8936,15 +8941,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleColor(IHTMLCSSStyle
|
|||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
|
||||
{
|
||||
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
WARN("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
|
||||
return set_style_property(This, STYLEID_COLUMN_RULE_STYLE, v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
|
||||
{
|
||||
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
WARN("(%p)->(%p) semi-stub\n", This, p);
|
||||
return get_style_property(This, STYLEID_COLUMN_RULE_STYLE, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleWidth(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
|
||||
|
|
|
@ -85,6 +85,7 @@ typedef enum {
|
|||
STYLEID_COLUMN_FILL,
|
||||
STYLEID_COLUMN_GAP,
|
||||
STYLEID_COLUMN_RULE_COLOR,
|
||||
STYLEID_COLUMN_RULE_STYLE,
|
||||
STYLEID_COLUMN_SPAN,
|
||||
STYLEID_COLUMN_WIDTH,
|
||||
STYLEID_CURSOR,
|
||||
|
|
|
@ -1036,6 +1036,24 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
|
|||
todo_wine
|
||||
ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"red"), "columnRuleColor = %s\n", wine_dbgstr_variant(&v));
|
||||
VariantClear(&v);
|
||||
|
||||
str = NULL;
|
||||
hres = IHTMLCSSStyleDeclaration2_get_columnRuleStyle(css_style, &str);
|
||||
ok(hres == S_OK, "get_columnRuleStyle failed: %08x\n", hres);
|
||||
ok(!str, "columnRuleStyle = %s\n", wine_dbgstr_w(str));
|
||||
SysFreeString(str);
|
||||
|
||||
str = SysAllocString(L"solid");
|
||||
hres = IHTMLCSSStyleDeclaration2_put_columnRuleStyle(css_style, str);
|
||||
ok(hres == S_OK, "put_columnRuleStyle failed: %08x\n", hres);
|
||||
SysFreeString(str);
|
||||
|
||||
str = NULL;
|
||||
hres = IHTMLCSSStyleDeclaration2_get_columnRuleStyle(css_style, &str);
|
||||
ok(hres == S_OK, "get_columnRuleStyle failed: %08x\n", hres);
|
||||
todo_wine
|
||||
ok(str && !lstrcmpW(str, L"solid"), "columnRuleStyle = %s\n", wine_dbgstr_w(str));
|
||||
SysFreeString(str);
|
||||
}
|
||||
|
||||
static void test_body_style(IHTMLStyle *style)
|
||||
|
|
Loading…
Reference in New Issue