summaryrefslogtreecommitdiff
path: root/src/core/node.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-05 23:52:56 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-05 23:52:56 +0000
commitac42344d05ec326f0063133498ec1c040e924db2 (patch)
tree4041bc41d72721a94dc573e5be3cb0f80988e004 /src/core/node.c
parentc9c2a632f38b736d6879caf00aa477ecf2e22dfb (diff)
downloadlibdom-ac42344d05ec326f0063133498ec1c040e924db2.tar.gz
libdom-ac42344d05ec326f0063133498ec1c040e924db2.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.c20
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;