diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 23:52:56 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 23:52:56 +0000 |
commit | 6ab986acd57b516b5b9aff04ee09d57db02ed0b6 (patch) | |
tree | 4041bc41d72721a94dc573e5be3cb0f80988e004 /src/core/node.c | |
parent | cf7e104bab600e6c22c3bf8d1d6cbc138360038b (diff) | |
download | libdom-6ab986acd57b516b5b9aff04ee09d57db02ed0b6.tar.gz libdom-6ab986acd57b516b5b9aff04ee09d57db02ed0b6.tar.bz2 |
Remove bootstrap infrastructure, and just make dom_implementation a stub.
We only support a single implementation, so all the registry and implementation list stuff is totally unnecesary and overcomplex
svn path=/trunk/dom/; revision=11017
Diffstat (limited to 'src/core/node.c')
-rw-r--r-- | src/core/node.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/core/node.c b/src/core/node.c index ef2baf2..d4007df 100644 --- a/src/core/node.c +++ b/src/core/node.c @@ -1295,15 +1295,11 @@ dom_exception _dom_node_is_supported(dom_node_internal *node, struct dom_string *feature, struct dom_string *version, bool *result) { - dom_document *doc; - dom_implementation *impl; bool has; - doc = node->owner; - assert(doc != NULL); - dom_document_get_implementation(doc, &impl); - assert(impl != NULL); - dom_implementation_has_feature(impl, feature, version, &has); + UNUSED(node); + + dom_implementation_has_feature(feature, version, &has); *result = has; @@ -1792,15 +1788,11 @@ dom_exception _dom_node_get_feature(dom_node_internal *node, struct dom_string *feature, struct dom_string *version, void **result) { - dom_document *doc; - dom_implementation *impl; bool has; - doc = node->owner; - assert(doc != NULL); - dom_document_get_implementation(doc, &impl); - assert(impl != NULL); - dom_implementation_has_feature(impl, feature, version, &has); + UNUSED(node); + + dom_implementation_has_feature(feature, version, &has); if (has) { *result = node; |