Commit b9f9a358 authored by Zhenbo Li's avatar Zhenbo Li Committed by Alexandre Julliard

mshtml: Added IHTMLStyle:: textTransform property implementation.

parent 7a768ff1
...@@ -172,6 +172,8 @@ static const WCHAR attrTextDecoration[] = ...@@ -172,6 +172,8 @@ static const WCHAR attrTextDecoration[] =
{'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0}; {'t','e','x','t','-','d','e','c','o','r','a','t','i','o','n',0};
static const WCHAR attrTextIndent[] = static const WCHAR attrTextIndent[] =
{'t','e','x','t','-','i','n','d','e','n','t',0}; {'t','e','x','t','-','i','n','d','e','n','t',0};
static const WCHAR attrTextTransform[] =
{'t','e','x','t','-','t','r','a','n','s','f','o','r','m',0};
static const WCHAR attrTop[] = static const WCHAR attrTop[] =
{'t','o','p',0}; {'t','o','p',0};
static const WCHAR attrVerticalAlign[] = static const WCHAR attrVerticalAlign[] =
...@@ -266,6 +268,7 @@ static const style_tbl_entry_t style_tbl[] = { ...@@ -266,6 +268,7 @@ static const style_tbl_entry_t style_tbl[] = {
{attrTextAlign, DISPID_IHTMLSTYLE_TEXTALIGN}, {attrTextAlign, DISPID_IHTMLSTYLE_TEXTALIGN},
{attrTextDecoration, DISPID_IHTMLSTYLE_TEXTDECORATION}, {attrTextDecoration, DISPID_IHTMLSTYLE_TEXTDECORATION},
{attrTextIndent, DISPID_IHTMLSTYLE_TEXTINDENT}, {attrTextIndent, DISPID_IHTMLSTYLE_TEXTINDENT},
{attrTextTransform, DISPID_IHTMLSTYLE_TEXTTRANSFORM},
{attrTop, DISPID_IHTMLSTYLE_TOP}, {attrTop, DISPID_IHTMLSTYLE_TOP},
{attrVerticalAlign, DISPID_IHTMLSTYLE_VERTICALALIGN}, {attrVerticalAlign, DISPID_IHTMLSTYLE_VERTICALALIGN},
{attrVisibility, DISPID_IHTMLSTYLE_VISIBILITY}, {attrVisibility, DISPID_IHTMLSTYLE_VISIBILITY},
...@@ -1450,15 +1453,19 @@ static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p) ...@@ -1450,15 +1453,19 @@ static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v) static HRESULT WINAPI HTMLStyle_put_textTransform(IHTMLStyle *iface, BSTR v)
{ {
HTMLStyle *This = impl_from_IHTMLStyle(iface); HTMLStyle *This = impl_from_IHTMLStyle(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; TRACE("(%p)->(%s)\n", This, debugstr_w(v));
return set_style_attr(This, STYLEID_TEXT_TRANSFORM, v, 0);
} }
static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p) static HRESULT WINAPI HTMLStyle_get_textTransform(IHTMLStyle *iface, BSTR *p)
{ {
HTMLStyle *This = impl_from_IHTMLStyle(iface); HTMLStyle *This = impl_from_IHTMLStyle(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, p);
return get_style_attr(This, STYLEID_TEXT_TRANSFORM, p);
} }
static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v) static HRESULT WINAPI HTMLStyle_put_textAlign(IHTMLStyle *iface, BSTR v)
......
...@@ -101,6 +101,7 @@ typedef enum { ...@@ -101,6 +101,7 @@ typedef enum {
STYLEID_TEXT_ALIGN, STYLEID_TEXT_ALIGN,
STYLEID_TEXT_DECORATION, STYLEID_TEXT_DECORATION,
STYLEID_TEXT_INDENT, STYLEID_TEXT_INDENT,
STYLEID_TEXT_TRANSFORM,
STYLEID_TOP, STYLEID_TOP,
STYLEID_VERTICAL_ALIGN, STYLEID_VERTICAL_ALIGN,
STYLEID_VISIBILITY, STYLEID_VISIBILITY,
......
...@@ -1249,6 +1249,22 @@ static void test_body_style(IHTMLStyle *style) ...@@ -1249,6 +1249,22 @@ static void test_body_style(IHTMLStyle *style)
SysFreeString(str); SysFreeString(str);
str = (void*)0xdeadbeef; str = (void*)0xdeadbeef;
hres = IHTMLStyle_get_textTransform(style, &str);
ok(hres == S_OK, "get_textTransform failed: %08x\n", hres);
ok(!str, "textTransform != NULL\n");
str = a2bstr("lowercase");
hres = IHTMLStyle_put_textTransform(style, str);
ok(hres == S_OK, "put_textTransform failed: %08x\n", hres);
SysFreeString(str);
str = NULL;
hres = IHTMLStyle_get_textTransform(style, &str);
ok(hres == S_OK, "get_textTransform failed: %08x\n", hres);
ok(!strcmp_wa(str, "lowercase"), "textTransform = %s\n", wine_dbgstr_w(V_BSTR(&v)));
SysFreeString(str);
str = (void*)0xdeadbeef;
hres = IHTMLStyle_get_filter(style, &str); hres = IHTMLStyle_get_filter(style, &str);
ok(hres == S_OK, "get_filter failed: %08x\n", hres); ok(hres == S_OK, "get_filter failed: %08x\n", hres);
ok(!str, "filter != NULL\n"); ok(!str, "filter != NULL\n");
......
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