Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a6ee270f
Commit
a6ee270f
authored
Sep 06, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Always create event object in fire_event.
parent
50ab5620
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
htmlevent.c
dlls/mshtml/htmlevent.c
+5
-14
No files found.
dlls/mshtml/htmlevent.c
View file @
a6ee270f
...
...
@@ -499,18 +499,15 @@ void fire_event(HTMLDocument *doc, eventid_t eid, nsIDOMNode *target)
}
prev_event
=
doc
->
window
->
event
;
event_obj
=
doc
->
window
->
event
=
create_event
(
get_node
(
doc
,
target
,
TRUE
));
nsnode
=
target
;
nsIDOMNode_AddRef
(
nsnode
);
while
(
1
)
{
node
=
get_node
(
doc
,
nsnode
,
FALSE
);
if
(
node
)
{
if
(
!
event_obj
)
event_obj
=
doc
->
window
->
event
=
create_event
(
get_node
(
doc
,
target
,
TRUE
));
if
(
node
)
call_event_handlers
(
doc
,
node
->
event_target
,
eid
,
(
IDispatch
*
)
HTMLDOMNODE
(
node
));
}
if
(
!
(
event_info
[
eid
].
flags
&
EVENT_BUBBLE
))
break
;
...
...
@@ -529,17 +526,11 @@ void fire_event(HTMLDocument *doc, eventid_t eid, nsIDOMNode *target)
if
(
nsnode
)
nsIDOMNode_Release
(
nsnode
);
if
(
event_info
[
eid
].
flags
&
EVENT_BUBBLE
)
{
if
(
!
event_obj
)
event_obj
=
doc
->
window
->
event
=
create_event
(
get_node
(
doc
,
target
,
TRUE
));
if
(
event_info
[
eid
].
flags
&
EVENT_BUBBLE
)
call_event_handlers
(
doc
,
doc
->
event_target
,
eid
,
(
IDispatch
*
)
HTMLDOC
(
doc
));
}
if
(
event_obj
)
{
IHTMLEventObj_Release
(
event_obj
);
doc
->
window
->
event
=
prev_event
;
}
IHTMLEventObj_Release
(
event_obj
);
doc
->
window
->
event
=
prev_event
;
}
static
HRESULT
set_event_handler_disp
(
event_target_t
**
event_target
,
HTMLDocument
*
doc
,
eventid_t
eid
,
IDispatch
*
disp
)
...
...
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