mshtml: Add IHTMLCSSStyleDeclaration2::columnRuleColor 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
a916cf2bfc
commit
fe886e6eed
|
@ -563,6 +563,11 @@ static const style_tbl_entry_t style_tbl[] = {
|
||||||
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNGAP,
|
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNGAP,
|
||||||
DISPID_UNKNOWN
|
DISPID_UNKNOWN
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
L"column-rule-color",
|
||||||
|
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNRULECOLOR,
|
||||||
|
DISPID_UNKNOWN
|
||||||
|
},
|
||||||
{
|
{
|
||||||
L"column-span",
|
L"column-span",
|
||||||
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNSPAN,
|
DISPID_IHTMLCSSSTYLEDECLARATION2_COLUMNSPAN,
|
||||||
|
@ -8917,15 +8922,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRule(IHTMLCSSStyleDecla
|
||||||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
|
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT v)
|
||||||
{
|
{
|
||||||
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
||||||
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
|
WARN("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
|
||||||
return E_NOTIMPL;
|
return set_style_property_var(This, STYLEID_COLUMN_RULE_COLOR, &v);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
|
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_columnRuleColor(IHTMLCSSStyleDeclaration2 *iface, VARIANT *p)
|
||||||
{
|
{
|
||||||
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
WARN("(%p)->(%p) semi-stub\n", This, p);
|
||||||
return E_NOTIMPL;
|
return get_style_property_var(This, STYLEID_COLUMN_RULE_COLOR, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
|
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_columnRuleStyle(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
|
||||||
|
|
|
@ -84,6 +84,7 @@ typedef enum {
|
||||||
STYLEID_COLUMN_COUNT,
|
STYLEID_COLUMN_COUNT,
|
||||||
STYLEID_COLUMN_FILL,
|
STYLEID_COLUMN_FILL,
|
||||||
STYLEID_COLUMN_GAP,
|
STYLEID_COLUMN_GAP,
|
||||||
|
STYLEID_COLUMN_RULE_COLOR,
|
||||||
STYLEID_COLUMN_SPAN,
|
STYLEID_COLUMN_SPAN,
|
||||||
STYLEID_COLUMN_WIDTH,
|
STYLEID_COLUMN_WIDTH,
|
||||||
STYLEID_CURSOR,
|
STYLEID_CURSOR,
|
||||||
|
|
|
@ -1017,6 +1017,25 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(str && !lstrcmpW(str, L"all"), "columnSpan = %s\n", wine_dbgstr_w(str));
|
ok(str && !lstrcmpW(str, L"all"), "columnSpan = %s\n", wine_dbgstr_w(str));
|
||||||
SysFreeString(str);
|
SysFreeString(str);
|
||||||
|
|
||||||
|
V_VT(&v) = VT_ERROR;
|
||||||
|
hres = IHTMLCSSStyleDeclaration2_get_columnRuleColor(css_style, &v);
|
||||||
|
ok(hres == S_OK, "get_columnRuleColor failed: %08x\n", hres);
|
||||||
|
ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnRuleColor = %s\n", wine_dbgstr_variant(&v));
|
||||||
|
VariantClear(&v);
|
||||||
|
|
||||||
|
V_VT(&v) = VT_BSTR;
|
||||||
|
V_BSTR(&v) = SysAllocString(L"red");
|
||||||
|
hres = IHTMLCSSStyleDeclaration2_put_columnRuleColor(css_style, v);
|
||||||
|
ok(hres == S_OK, "put_columnRuleColor failed: %08x\n", hres);
|
||||||
|
VariantClear(&v);
|
||||||
|
|
||||||
|
V_VT(&v) = VT_ERROR;
|
||||||
|
hres = IHTMLCSSStyleDeclaration2_get_columnRuleColor(css_style, &v);
|
||||||
|
ok(hres == S_OK, "get_columnRuleColor failed: %08x\n", hres);
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_body_style(IHTMLStyle *style)
|
static void test_body_style(IHTMLStyle *style)
|
||||||
|
|
Loading…
Reference in New Issue