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

mshtml: Add IHTMLCSSStyleDeclaration2::columnRule property semi-stub implementation.

parent 883f45ac
......@@ -564,6 +564,11 @@ static const style_tbl_entry_t style_tbl[] = {
DISPID_UNKNOWN
},
{
L"column-rule",
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULE,
DISPID_UNKNOWN
},
{
L"column-rule-color",
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULECOLOR,
DISPID_UNKNOWN
......@@ -8918,15 +8923,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columns(IHTMLCSSStyleDeclarat
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRule(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, v);
}
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRule(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, p);
}
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
......
......@@ -84,6 +84,7 @@ typedef enum {
STYLEID_COLUMN_COUNT,
STYLEID_COLUMN_FILL,
STYLEID_COLUMN_GAP,
STYLEID_COLUMN_RULE,
STYLEID_COLUMN_RULE_COLOR,
STYLEID_COLUMN_RULE_STYLE,
STYLEID_COLUMN_RULE_WIDTH,
......
......@@ -1073,6 +1073,21 @@ 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"10px"), "columnRuleWidth = %s\n", wine_dbgstr_variant(&v));
VariantClear(&v);
str = NULL;
hres = IHTMLCSSStyleDeclaration2_get_columnRule(css_style, &str);
ok(hres == S_OK, "get_columnRule failed: %08x\n", hres);
todo_wine
ok(str && !lstrcmpW(str, L"10px solid red"), "columnRule = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
hres = IHTMLCSSStyleDeclaration2_put_columnRule(css_style, NULL);
ok(hres == S_OK, "put_columnRule failed: %08x\n", hres);
str = (void*)0xdeadbeef;
hres = IHTMLCSSStyleDeclaration2_get_columnRule(css_style, &str);
ok(hres == S_OK, "get_columnRule failed: %08x\n", hres);
ok(!str, "columnRule = %s\n", wine_dbgstr_w(str));
}
static void test_body_style(IHTMLStyle *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