Commit 4b29a69b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Add IHTMLCSSStyleDeclaration2::animationName property implementation.

parent 8d40873d
...@@ -341,6 +341,10 @@ typedef struct { ...@@ -341,6 +341,10 @@ typedef struct {
static const style_tbl_entry_t style_tbl[] = { static const style_tbl_entry_t style_tbl[] = {
{ {
L"animation-name",
DISPID_IHTMLCSSSTYLEDECLARATION2_ANIMATIONNAME
},
{
backgroundW, backgroundW,
DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUND, DISPID_IHTMLCSSSTYLEDECLARATION_BACKGROUND,
DISPID_A_BACKGROUND DISPID_A_BACKGROUND
...@@ -9749,15 +9753,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_fontFeatureSettings(IHTMLCSSS ...@@ -9749,15 +9753,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_fontFeatureSettings(IHTMLCSSS
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR v) static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
{ {
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface); CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v)); TRACE("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; return set_style_property(This, STYLEID_ANIMATION_NAME, v);
} }
static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR *p) static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationName(IHTMLCSSStyleDeclaration2 *iface, BSTR *p)
{ {
CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface); CSSStyle *This = impl_from_IHTMLCSSStyleDeclaration2(iface);
FIXME("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return get_style_property(This, STYLEID_ANIMATION_NAME, p);
} }
static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v) static HRESULT WINAPI HTMLCSSStyleDeclaration2_put_animationDuration(IHTMLCSSStyleDeclaration2 *iface, BSTR v)
......
...@@ -44,6 +44,7 @@ struct HTMLStyle { ...@@ -44,6 +44,7 @@ struct HTMLStyle {
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */ /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
typedef enum { typedef enum {
STYLEID_ANIMATION_NAME,
STYLEID_BACKGROUND, STYLEID_BACKGROUND,
STYLEID_BACKGROUND_ATTACHMENT, STYLEID_BACKGROUND_ATTACHMENT,
STYLEID_BACKGROUND_CLIP, STYLEID_BACKGROUND_CLIP,
......
...@@ -855,6 +855,23 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style) ...@@ -855,6 +855,23 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
ok(hres == S_OK, "get_transform failed: %08x\n", hres); ok(hres == S_OK, "get_transform failed: %08x\n", hres);
ok(!lstrcmpW(str, L"none"), "transform = %s\n", wine_dbgstr_w(str)); ok(!lstrcmpW(str, L"none"), "transform = %s\n", wine_dbgstr_w(str));
SysFreeString(str); SysFreeString(str);
str = NULL;
hres = IHTMLCSSStyleDeclaration2_get_animationName(css_style, &str);
ok(hres == S_OK, "get_animationName failed: %08x\n", hres);
ok(!str, "animationName = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
str = SysAllocString(L"none");
hres = IHTMLCSSStyleDeclaration2_put_animationName(css_style, str);
ok(hres == S_OK, "put_animationName failed: %08x\n", hres);
SysFreeString(str);
str = NULL;
hres = IHTMLCSSStyleDeclaration2_get_animationName(css_style, &str);
ok(hres == S_OK, "get_animationName failed: %08x\n", hres);
ok(!lstrcmpW(str, L"none"), "animationName = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
} }
static void test_body_style(IHTMLStyle *style) static void test_body_style(IHTMLStyle *style)
......
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