mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 15:28:03 +00:00
mstml: Add style.borderSpacing property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
25b10ea4cc
commit
71750bd80d
3 changed files with 39 additions and 12 deletions
|
@ -83,6 +83,8 @@ static const WCHAR border_right_styleW[] =
|
|||
{'b','o','r','d','e','r','-','r','i','g','h','t','-','s','t','y','l','e',0};
|
||||
static const WCHAR border_right_widthW[] =
|
||||
{'b','o','r','d','e','r','-','r','i','g','h','t','-','w','i','d','t','h',0};
|
||||
static const WCHAR border_spacingW[] =
|
||||
{'b','o','r','d','e','r','-','s','p','a','c','i','n','g',0};
|
||||
static const WCHAR border_topW[] =
|
||||
{'b','o','r','d','e','r','-','t','o','p',0};
|
||||
static const WCHAR border_top_colorW[] =
|
||||
|
@ -475,6 +477,11 @@ static const style_tbl_entry_t style_tbl[] = {
|
|||
DISPID_IHTMLSTYLE_BORDERRIGHTWIDTH,
|
||||
ATTR_FIX_PX
|
||||
},
|
||||
{
|
||||
border_spacingW,
|
||||
DISPID_IHTMLCSSSTYLEDECLARATION_BORDERSPACING,
|
||||
DISPID_IHTMLSTYLE6_BORDERSPACING
|
||||
},
|
||||
{
|
||||
border_styleW,
|
||||
DISPID_IHTMLCSSSTYLEDECLARATION_BORDERSTYLE,
|
||||
|
@ -4938,18 +4945,22 @@ static HRESULT WINAPI HTMLStyle6_get_boxSizing(IHTMLStyle6 *iface, BSTR *p)
|
|||
return get_style_property(This, STYLEID_BOX_SIZING, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle6_put_boxSpacing(IHTMLStyle6 *iface, BSTR v)
|
||||
static HRESULT WINAPI HTMLStyle6_put_borderSpacing(IHTMLStyle6 *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = impl_from_IHTMLStyle6(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
return set_style_property(This, STYLEID_BORDER_SPACING, v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle6_get_boxSpacing(IHTMLStyle6 *iface, BSTR *p)
|
||||
static HRESULT WINAPI HTMLStyle6_get_borderSpacing(IHTMLStyle6 *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = impl_from_IHTMLStyle6(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_style_property(This, STYLEID_BORDER_SPACING, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle6_put_orphans(IHTMLStyle6 *iface, VARIANT v)
|
||||
|
@ -5062,8 +5073,8 @@ static const IHTMLStyle6Vtbl HTMLStyle6Vtbl = {
|
|||
HTMLStyle6_get_outlineColor,
|
||||
HTMLStyle6_put_boxSizing,
|
||||
HTMLStyle6_get_boxSizing,
|
||||
HTMLStyle6_put_boxSpacing,
|
||||
HTMLStyle6_get_boxSpacing,
|
||||
HTMLStyle6_put_borderSpacing,
|
||||
HTMLStyle6_get_borderSpacing,
|
||||
HTMLStyle6_put_orphans,
|
||||
HTMLStyle6_get_orphans,
|
||||
HTMLStyle6_put_windows,
|
||||
|
@ -7039,15 +7050,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration_get_boxSizing(IHTMLCSSStyleDeclara
|
|||
static HRESULT WINAPI HTMLCSSStyleDeclaration_put_borderSpacing(IHTMLCSSStyleDeclaration *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return set_style_property(This, STYLEID_BORDER_SPACING, v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCSSStyleDeclaration_get_borderSpacing(IHTMLCSSStyleDeclaration *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_style_property(This, STYLEID_BORDER_SPACING, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCSSStyleDeclaration_put_orphans(IHTMLCSSStyleDeclaration *iface, VARIANT v)
|
||||
|
|
|
@ -59,6 +59,7 @@ typedef enum {
|
|||
STYLEID_BORDER_RIGHT_COLOR,
|
||||
STYLEID_BORDER_RIGHT_STYLE,
|
||||
STYLEID_BORDER_RIGHT_WIDTH,
|
||||
STYLEID_BORDER_SPACING,
|
||||
STYLEID_BORDER_STYLE,
|
||||
STYLEID_BORDER_TOP,
|
||||
STYLEID_BORDER_TOP_COLOR,
|
||||
|
|
|
@ -801,6 +801,21 @@ static void test_style6(IHTMLStyle6 *style)
|
|||
ok(hres == S_OK, "get_boxSizing failed: %08x\n", hres);
|
||||
ok(!strcmp_wa(str, "border-box"), "boxSizing = %s\n", wine_dbgstr_w(str));
|
||||
SysFreeString(str);
|
||||
|
||||
hres = IHTMLStyle6_get_borderSpacing(style, &str);
|
||||
ok(hres == S_OK, "get_borderSpacing failed: %08x\n", hres);
|
||||
ok(!str, "borderSpacing = %s\n", wine_dbgstr_w(str));
|
||||
|
||||
str = a2bstr("10px");
|
||||
hres = IHTMLStyle6_put_borderSpacing(style, str);
|
||||
ok(hres == S_OK, "put_borderSpacing failed: %08x\n", hres);
|
||||
SysFreeString(str);
|
||||
|
||||
str = NULL;
|
||||
hres = IHTMLStyle6_get_borderSpacing(style, &str);
|
||||
ok(hres == S_OK, "get_borderSpacing failed: %08x\n", hres);
|
||||
ok(!strcmp_wa(str, "10px"), "borderSpacing = %s\n", wine_dbgstr_w(str));
|
||||
SysFreeString(str);
|
||||
}
|
||||
|
||||
static void test_css_style_declaration(IHTMLCSSStyleDeclaration *css_style)
|
||||
|
|
Loading…
Reference in a new issue