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
7a0600dc
Commit
7a0600dc
authored
Aug 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call default event handlers only for events that have them.
parent
d1256404
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+4
-4
No files found.
dlls/mshtml/htmlevent.c
View file @
7a0600dc
...
...
@@ -141,7 +141,7 @@ typedef struct {
#define EVENT_FORWARDBODY 0x0004
#define EVENT_NODEHANDLER 0x0008
#define EVENT_CANCELABLE 0x0010
#define EVENT_
SETONINIT
0x0020
#define EVENT_
HASDEFAULTHANDLERS
0x0020
static
const
event_info_t
event_info
[]
=
{
{
beforeunloadW
,
onbeforeunloadW
,
EVENTT_NONE
,
DISPID_EVMETH_ONBEFOREUNLOAD
,
...
...
@@ -151,7 +151,7 @@ static const event_info_t event_info[] = {
{
changeW
,
onchangeW
,
EVENTT_HTML
,
DISPID_EVMETH_ONCHANGE
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
clickW
,
onclickW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONCLICK
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
|
EVENT_
SETONINIT
},
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
|
EVENT_
HASDEFAULTHANDLERS
},
{
contextmenuW
,
oncontextmenuW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONCONTEXTMENU
,
EVENT_BUBBLE
|
EVENT_CANCELABLE
},
{
dblclickW
,
ondblclickW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONDBLCLICK
,
...
...
@@ -1062,7 +1062,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
if
(
event_obj
)
IHTMLEventObj_Release
(
&
event_obj
->
IHTMLEventObj_iface
);
if
(
!
prevent_default
)
{
if
(
!
prevent_default
&&
(
event_info
[
eid
].
flags
&
EVENT_HASDEFAULTHANDLERS
)
)
{
nsIDOMNode_AddRef
(
target
);
nsnode
=
target
;
...
...
@@ -1382,7 +1382,7 @@ HRESULT doc_init_events(HTMLDocumentNode *doc)
init_nsevents
(
doc
);
for
(
i
=
0
;
i
<
EVENTID_LAST
;
i
++
)
{
if
(
event_info
[
i
].
flags
&
EVENT_
SETONINIT
)
{
if
(
event_info
[
i
].
flags
&
EVENT_
HASDEFAULTHANDLERS
)
{
hres
=
ensure_nsevent_handler
(
doc
,
NULL
,
NULL
,
i
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
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