summaryrefslogtreecommitdiff
path: root/src/core/node.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-02-19 23:27:10 +0000
committerVincent Sanders <vince@kyllikki.org>2013-02-19 23:27:10 +0000
commit081cf689356ef9138b67da2c687883b9c3354a63 (patch)
treec482500d137ff527279e15f1167ac3d2022fb013 /src/core/node.c
parentf7ae4017ff50be5ef4eb3047ebbff4820550d5ed (diff)
downloadlibdom-081cf689356ef9138b67da2c687883b9c3354a63.tar.gz
libdom-081cf689356ef9138b67da2c687883b9c3354a63.tar.bz2
add context for default action function
Diffstat (limited to 'src/core/node.c')
-rw-r--r--src/core/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/node.c b/src/core/node.c
index c7794e6..1323fca 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2315,7 +2315,7 @@ dom_exception _dom_node_dispatch_event(dom_event_target *et,
dom_document_event_internal *dei;
dom_event_target **targets;
uint32_t ntargets, ntargets_allocated, targetnr;
- void *pw = NULL;
+ void *pw;
assert(et != NULL);
assert(evt != NULL);
@@ -2376,6 +2376,7 @@ dom_exception _dom_node_dispatch_event(dom_event_target *et,
/* The started callback of default action */
dei = &doc->dei;
+ pw = dei->actions_ctx;
if (dei->actions != NULL) {
dom_default_action_callback cb = dei->actions(evt->type,
DOM_DEFAULT_ACTION_STARTED, &pw);