mshtml: Implement IHTMLCurrentStyle_get_borderBottomColor.
This commit is contained in:
parent
bf5ab29c1c
commit
b80faba168
|
@ -245,8 +245,8 @@ static HRESULT WINAPI HTMLCurrentStyle_get_borderRightColor(IHTMLCurrentStyle *i
|
||||||
static HRESULT WINAPI HTMLCurrentStyle_get_borderBottomColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderBottomColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
||||||
{
|
{
|
||||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
return E_NOTIMPL;
|
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_BOTTOM_COLOR, p, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLCurrentStyle_get_borderTopStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
static HRESULT WINAPI HTMLCurrentStyle_get_borderTopStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
||||||
|
|
|
@ -49,6 +49,8 @@ static const WCHAR attrBackgroundRepeat[] =
|
||||||
{'b','a','c','k','g','r','o','u','n','d','-','r','e','p','e','a','t',0};
|
{'b','a','c','k','g','r','o','u','n','d','-','r','e','p','e','a','t',0};
|
||||||
static const WCHAR attrBorder[] =
|
static const WCHAR attrBorder[] =
|
||||||
{'b','o','r','d','e','r',0};
|
{'b','o','r','d','e','r',0};
|
||||||
|
static const WCHAR attrBorderBottomColor[] =
|
||||||
|
{'b','o','r','d','e','r','-','b','o','t','t','o','m','-','c','o','l','o','r',0};
|
||||||
static const WCHAR attrBorderBottomStyle[] =
|
static const WCHAR attrBorderBottomStyle[] =
|
||||||
{'b','o','r','d','e','r','-','b','o','t','t','o','m','-','s','t','y','l','e',0};
|
{'b','o','r','d','e','r','-','b','o','t','t','o','m','-','s','t','y','l','e',0};
|
||||||
static const WCHAR attrBorderBottomWidth[] =
|
static const WCHAR attrBorderBottomWidth[] =
|
||||||
|
@ -147,6 +149,7 @@ static const struct{
|
||||||
{attrBackgroundPositionY, DISPID_IHTMLSTYLE_BACKGROUNDPOSITIONY},
|
{attrBackgroundPositionY, DISPID_IHTMLSTYLE_BACKGROUNDPOSITIONY},
|
||||||
{attrBackgroundRepeat, DISPID_IHTMLSTYLE_BACKGROUNDREPEAT},
|
{attrBackgroundRepeat, DISPID_IHTMLSTYLE_BACKGROUNDREPEAT},
|
||||||
{attrBorder, DISPID_IHTMLSTYLE_BORDER},
|
{attrBorder, DISPID_IHTMLSTYLE_BORDER},
|
||||||
|
{attrBorderBottomColor, DISPID_IHTMLSTYLE_BORDERBOTTOMCOLOR},
|
||||||
{attrBorderBottomStyle, DISPID_IHTMLSTYLE_BORDERBOTTOMSTYLE},
|
{attrBorderBottomStyle, DISPID_IHTMLSTYLE_BORDERBOTTOMSTYLE},
|
||||||
{attrBorderBottomWidth, DISPID_IHTMLSTYLE_BORDERBOTTOMWIDTH},
|
{attrBorderBottomWidth, DISPID_IHTMLSTYLE_BORDERBOTTOMWIDTH},
|
||||||
{attrBorderColor, DISPID_IHTMLSTYLE_BORDERCOLOR},
|
{attrBorderColor, DISPID_IHTMLSTYLE_BORDERCOLOR},
|
||||||
|
|
|
@ -42,6 +42,7 @@ typedef enum {
|
||||||
STYLEID_BACKGROUND_POSITION_Y,
|
STYLEID_BACKGROUND_POSITION_Y,
|
||||||
STYLEID_BACKGROUND_REPEAT,
|
STYLEID_BACKGROUND_REPEAT,
|
||||||
STYLEID_BORDER,
|
STYLEID_BORDER,
|
||||||
|
STYLEID_BORDER_BOTTOM_COLOR,
|
||||||
STYLEID_BORDER_BOTTOM_STYLE,
|
STYLEID_BORDER_BOTTOM_STYLE,
|
||||||
STYLEID_BORDER_BOTTOM_WIDTH,
|
STYLEID_BORDER_BOTTOM_WIDTH,
|
||||||
STYLEID_BORDER_COLOR,
|
STYLEID_BORDER_COLOR,
|
||||||
|
|
|
@ -2751,6 +2751,11 @@ static void test_current_style(IHTMLCurrentStyle *current_style)
|
||||||
ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres);
|
ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres);
|
||||||
ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v));
|
ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v));
|
||||||
VariantClear(&v);
|
VariantClear(&v);
|
||||||
|
|
||||||
|
hres = IHTMLCurrentStyle_get_borderBottomColor(current_style, &v);
|
||||||
|
ok(hres == S_OK, "get_borderBottomColor failed: %08x\n", hres);
|
||||||
|
ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v));
|
||||||
|
VariantClear(&v);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_style2(IHTMLStyle2 *style2)
|
static void test_style2(IHTMLStyle2 *style2)
|
||||||
|
|
Loading…
Reference in New Issue