summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-21 14:22:11 +0200
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-21 14:22:11 +0200
commit3d7aaee2fa5b61dc001f9ce79983f24c4ece87a1 (patch)
tree5f2e22e7f974376907fa1d522e3ff8138a0d3c8c /src/core
parent419b9a774b533462d9fa59e8733425a7e33c3efc (diff)
downloadlibdom-3d7aaee2fa5b61dc001f9ce79983f24c4ece87a1.tar.gz
libdom-3d7aaee2fa5b61dc001f9ce79983f24c4ece87a1.tar.bz2
Strip doc from event layer
Diffstat (limited to 'src/core')
-rw-r--r--src/core/document.c4
-rw-r--r--src/core/node.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/core/document.c b/src/core/document.c
index a78cde9..b68a066 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -266,7 +266,7 @@ dom_exception _dom_document_initialise(dom_document *doc,
}
/* We should not pass a NULL when all things hook up */
- return _dom_document_event_internal_initialise(doc, &doc->dei, daf, daf_ctx);
+ return _dom_document_event_internal_initialise(&doc->dei, daf, daf_ctx);
}
@@ -309,7 +309,7 @@ bool _dom_document_finalise(dom_document *doc)
dom_string_unref(doc->_memo_domcharacterdatamodified);
dom_string_unref(doc->_memo_domsubtreemodified);
- _dom_document_event_internal_finalise(doc, &doc->dei);
+ _dom_document_event_internal_finalise(&doc->dei);
return true;
}
diff --git a/src/core/node.c b/src/core/node.c
index e500f3a..49033c0 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2360,9 +2360,6 @@ dom_exception _dom_node_dispatch_event(dom_event_target *et,
return DOM_UNSPECIFIED_EVENT_TYPE_ERR;
}
- if (evt->doc == NULL)
- return DOM_NOT_SUPPORTED_ERR;
-
doc = dom_node_get_owner(et);
if (doc == NULL) {
/* TODO: In the progress of parsing, many Nodes in the DTD has