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
1cfbcab7
Commit
1cfbcab7
authored
Sep 13, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move the MessageEvent construction to a helper.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
f9bda73b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
htmlevent.c
dlls/mshtml/htmlevent.c
+11
-8
No files found.
dlls/mshtml/htmlevent.c
View file @
1cfbcab7
...
...
@@ -2790,6 +2790,15 @@ static DOMEvent *progress_event_ctor(void *iface, nsIDOMEvent *nsevent, eventid_
return
&
progress_event
->
event
;
}
static
DOMEvent
*
message_event_ctor
(
nsIDOMEvent
*
nsevent
,
eventid_t
event_id
,
compat_mode_t
compat_mode
)
{
DOMMessageEvent
*
message_event
=
event_ctor
(
sizeof
(
DOMMessageEvent
),
&
DOMMessageEvent_dispex
,
DOMMessageEvent_query_interface
,
DOMMessageEvent_destroy
,
nsevent
,
event_id
,
compat_mode
);
if
(
!
message_event
)
return
NULL
;
message_event
->
IDOMMessageEvent_iface
.
lpVtbl
=
&
DOMMessageEventVtbl
;
return
&
message_event
->
event
;
}
static
DOMEvent
*
alloc_event
(
nsIDOMEvent
*
nsevent
,
compat_mode_t
compat_mode
,
eventid_t
event_id
)
{
static
const
struct
{
...
...
@@ -2805,14 +2814,8 @@ static DOMEvent *alloc_event(nsIDOMEvent *nsevent, compat_mode_t compat_mode, ev
DOMEvent
*
event
;
unsigned
i
;
if
(
event_id
==
EVENTID_MESSAGE
)
{
DOMMessageEvent
*
message_event
=
event_ctor
(
sizeof
(
DOMMessageEvent
),
&
DOMMessageEvent_dispex
,
DOMMessageEvent_query_interface
,
DOMMessageEvent_destroy
,
nsevent
,
event_id
,
compat_mode
);
if
(
!
message_event
)
return
NULL
;
message_event
->
IDOMMessageEvent_iface
.
lpVtbl
=
&
DOMMessageEventVtbl
;
return
&
message_event
->
event
;
}
if
(
event_id
==
EVENTID_MESSAGE
)
return
message_event_ctor
(
nsevent
,
event_id
,
compat_mode
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
types_table
);
i
++
)
{
void
*
iface
;
...
...
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