Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ee611b19
Commit
ee611b19
authored
Jan 27, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLCSSStyleDeclaration2::animation property.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44d58d35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
4 deletions
+41
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+10
-4
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-0
style.c
dlls/mshtml/tests/style.c
+30
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
ee611b19
...
...
@@ -121,6 +121,12 @@ typedef struct {
static
const
style_tbl_entry_t
style_tbl
[]
=
{
{
L"animation"
,
DISPID_IHTMLCSSSTYLEDECLARATION2_ANIMATION
,
DISPID_UNKNOWN
,
ATTR_COMPAT_IE10
},
{
L"animation-name"
,
DISPID_IHTMLCSSSTYLEDECLARATION2_ANIMATIONNAME
,
DISPID_UNKNOWN
,
...
...
@@ -9689,15 +9695,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_animationIterationCount(IHTML
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_put_animation
(
IHTMLCSSStyleDeclaration2
*
iface
,
BSTR
v
)
{
CSSStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration2
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_property
(
This
,
STYLEID_ANIMATION
,
v
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_get_animation
(
IHTMLCSSStyleDeclaration2
*
iface
,
BSTR
*
p
)
{
CSSStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration2
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_property
(
This
,
STYLEID_ANIMATION
,
p
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_put_animationFillMode
(
IHTMLCSSStyleDeclaration2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
ee611b19
...
...
@@ -44,6 +44,7 @@ struct HTMLStyle {
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
typedef
enum
{
STYLEID_ANIMATION
,
STYLEID_ANIMATION_NAME
,
STYLEID_BACKGROUND
,
STYLEID_BACKGROUND_ATTACHMENT
,
...
...
dlls/mshtml/tests/style.c
View file @
ee611b19
...
...
@@ -1106,6 +1106,36 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
ok
(
hres
==
S_OK
,
"get_perspective failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
&&
V_BSTR
(
&
v
)
&&
!
lstrcmpW
(
V_BSTR
(
&
v
),
L"100px"
),
"perspective = %s
\n
"
,
wine_dbgstr_variant
(
&
v
));
VariantClear
(
&
v
);
/* animation property */
hres
=
IHTMLCSSStyleDeclaration2_put_animation
(
css_style
,
NULL
);
ok
(
hres
==
S_OK
,
"put_animation failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLCSSStyleDeclaration2_get_animation
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_animation failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"animation = %s
\n
"
,
wine_dbgstr_w
(
str
));
str
=
SysAllocString
(
L"test"
);
hres
=
IHTMLCSSStyleDeclaration2_put_animation
(
css_style
,
str
);
ok
(
hres
==
S_OK
,
"put_animation failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLCSSStyleDeclaration2_get_animation
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_animation failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
!
lstrcmpW
(
str
,
L"test"
),
"animation = %s
\n
"
,
wine_dbgstr_w
(
str
));
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLCSSStyleDeclaration2_get_animationName
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_animationName failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
str
,
L"test"
),
"animationName = %s
\n
"
,
wine_dbgstr_w
(
str
));
str
=
SysAllocString
(
L"test"
);
hres
=
IHTMLCSSStyleDeclaration2_put_animation
(
css_style
,
NULL
);
ok
(
hres
==
S_OK
,
"put_animation failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
}
static
void
test_body_style
(
IHTMLStyle
*
style
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment