Module: wine Branch: master Commit: e777e9d1baaf84f88b1ca8327e62afa6463f9e4f URL: http://source.winehq.org/git/wine.git/?a=commit;h=e777e9d1baaf84f88b1ca8327e...
Author: Jactry Zeng wine@jactry.com Date: Mon Sep 15 09:51:10 2014 +0800
mshtml: Add IHTMLCurrentStyle::get_textTransform implementation.
---
dlls/mshtml/htmlcurstyle.c | 4 ++-- dlls/mshtml/tests/style.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlcurstyle.c b/dlls/mshtml/htmlcurstyle.c index ca5d60f..5f6cb35 100644 --- a/dlls/mshtml/htmlcurstyle.c +++ b/dlls/mshtml/htmlcurstyle.c @@ -793,8 +793,8 @@ static HRESULT WINAPI HTMLCurrentStyle_get_overflowY(IHTMLCurrentStyle *iface, B static HRESULT WINAPI HTMLCurrentStyle_get_textTransform(IHTMLCurrentStyle *iface, BSTR *p) { HTMLCurrentStyle *This = impl_from_IHTMLCurrentStyle(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + TRACE("(%p)->(%p)\n", This, p); + return get_nsstyle_attr(This->nsstyle, STYLEID_TEXT_TRANSFORM, p, 0); }
static const IHTMLCurrentStyleVtbl HTMLCurrentStyleVtbl = { diff --git a/dlls/mshtml/tests/style.c b/dlls/mshtml/tests/style.c index 40552a4..d8c86b1 100644 --- a/dlls/mshtml/tests/style.c +++ b/dlls/mshtml/tests/style.c @@ -2750,6 +2750,10 @@ static void test_current_style(IHTMLCurrentStyle *current_style) ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
+ hres = IHTMLCurrentStyle_get_textTransform(current_style, &str); + ok(hres == S_OK, "get_textTransform failed: %08x\n", hres); + SysFreeString(str); + current_style2 = get_current_style2_iface((IUnknown*)current_style);
b = 100;