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
cdb264e8
Commit
cdb264e8
authored
Mar 10, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add animationstart and animationend event support.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e06c541c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+2
-0
dom.js
dlls/mshtml/tests/dom.js
+14
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
cdb264e8
...
@@ -109,6 +109,10 @@ typedef struct {
...
@@ -109,6 +109,10 @@ typedef struct {
static
const
event_info_t
event_info
[]
=
{
static
const
event_info_t
event_info
[]
=
{
{
L"abort"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONABORT
,
{
L"abort"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONABORT
,
EVENT_BIND_TO_TARGET
},
EVENT_BIND_TO_TARGET
},
{
L"animationend"
,
EVENT_TYPE_EVENT
,
DISPID_EVPROP_ONANIMATIONEND
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLES
},
{
L"animationstart"
,
EVENT_TYPE_EVENT
,
DISPID_EVPROP_ONANIMATIONSTART
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLES
},
{
L"beforeactivate"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREACTIVATE
,
{
L"beforeactivate"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREACTIVATE
,
EVENT_FIXME
|
EVENT_BUBBLES
|
EVENT_CANCELABLE
},
EVENT_FIXME
|
EVENT_BUBBLES
|
EVENT_CANCELABLE
},
{
L"beforeunload"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREUNLOAD
,
{
L"beforeunload"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREUNLOAD
,
...
@@ -185,6 +189,8 @@ static const event_info_t event_info[] = {
...
@@ -185,6 +189,8 @@ static const event_info_t event_info[] = {
EVENT_FIXME
}
EVENT_FIXME
}
};
};
C_ASSERT
(
ARRAY_SIZE
(
event_info
)
==
EVENTID_LAST
);
static
eventid_t
str_to_eid
(
const
WCHAR
*
str
)
static
eventid_t
str_to_eid
(
const
WCHAR
*
str
)
{
{
int
i
;
int
i
;
...
...
dlls/mshtml/htmlevent.h
View file @
cdb264e8
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
typedef
enum
{
typedef
enum
{
EVENTID_ABORT
,
EVENTID_ABORT
,
EVENTID_ANIMATIONEND
,
EVENTID_ANIMATIONSTART
,
EVENTID_BEFOREACTIVATE
,
EVENTID_BEFOREACTIVATE
,
EVENTID_BEFOREUNLOAD
,
EVENTID_BEFOREUNLOAD
,
EVENTID_BLUR
,
EVENTID_BLUR
,
...
...
dlls/mshtml/tests/dom.js
View file @
cdb264e8
...
@@ -401,3 +401,17 @@ sync_test("storage", function() {
...
@@ -401,3 +401,17 @@ sync_test("storage", function() {
ok
(
typeof
(
window
.
localStorage
)
===
"object"
,
ok
(
typeof
(
window
.
localStorage
)
===
"object"
,
"typeof(window.localStorage) = "
+
typeof
(
window
.
localStorage
));
"typeof(window.localStorage) = "
+
typeof
(
window
.
localStorage
));
});
});
async_test
(
"animation"
,
function
()
{
document
.
body
.
innerHTML
=
"<style>"
+
" @keyframes testAnimation {0% { opacity: 0; } 100% { opacity: 1; }}"
+
" .testAnimation { animation-name: testAnimation; animation-duration: 0.01s; }"
+
"</style>"
;
var
div
=
document
.
createElement
(
"div"
);
div
.
addEventListener
(
"animationstart"
,
function
()
{
div
.
addEventListener
(
"animationend"
,
next_test
);
});
document
.
body
.
appendChild
(
div
);
div
.
className
=
"testAnimation"
;
});
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