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
8aaa18fd
Commit
8aaa18fd
authored
Oct 20, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use fire_event to dispatch focusin and focusout events.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a771127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
nsevents.c
dlls/mshtml/nsevents.c
+8
-11
No files found.
dlls/mshtml/nsevents.c
View file @
8aaa18fd
...
...
@@ -331,17 +331,14 @@ static nsresult NSAPI handle_htmlevent(nsIDOMEventListener *iface, nsIDOMEvent *
}
/* If we fine need for more special cases here, we may consider handling it in a more generic way. */
switch
(
event
->
event_id
)
{
case
EVENTID_FOCUS
:
if
(
doc
->
event_vector
[
EVENTID_FOCUSIN
])
fire_event
(
doc
,
EVENTID_FOCUSIN
,
TRUE
,
&
node
->
event_target
,
NULL
);
break
;
case
EVENTID_BLUR
:
if
(
doc
->
event_vector
[
EVENTID_FOCUSOUT
])
fire_event
(
doc
,
EVENTID_FOCUSOUT
,
TRUE
,
&
node
->
event_target
,
NULL
);
break
;
default:
break
;
if
(
event
->
event_id
==
EVENTID_FOCUS
||
event
->
event_id
==
EVENTID_BLUR
)
{
DOMEvent
*
focus_event
;
hres
=
create_document_event
(
doc
,
event
->
event_id
==
EVENTID_FOCUS
?
EVENTID_FOCUSIN
:
EVENTID_FOCUSOUT
,
&
focus_event
);
if
(
SUCCEEDED
(
hres
))
{
fire_event_obj
(
&
node
->
event_target
,
focus_event
);
IDOMEvent_Release
(
&
focus_event
->
IDOMEvent_iface
);
}
}
fire_event_obj
(
&
node
->
event_target
,
event
);
...
...
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