From 625237c9c13178cc8b3a0683495132ef1d0cf894 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 7 Sep 2008 21:09:08 +0000 Subject: Revert r5282 -- it's now redundant. svn path=/trunk/netsurf/; revision=5283 --- render/html.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 02f05c24c..3d5a70ae1 100644 --- a/render/html.c +++ b/render/html.c @@ -32,7 +32,6 @@ #include #include #include -#include // yes, with hubbub #endif #include #include @@ -165,8 +164,6 @@ int create_comment(void *ctx, const hubbub_string *data, void **result) { xmlNode *node = xmlNewComment(NULL); - LOG(("%.*s", (int) data->len, data->ptr)); - node->content = xmlStrndup(data->ptr, data->len); node->_private = (void *)1; *result = node; @@ -194,8 +191,6 @@ int create_element(void *ctx, const hubbub_tag *tag, void **result) char *name = strndup((const char *) tag->name.ptr, tag->name.len); - LOG(("%s", name)); - xmlNode *node = xmlNewNode(NULL, BAD_CAST name); node->_private = (void *)1; *result = node; @@ -221,8 +216,6 @@ int create_element(void *ctx, const hubbub_tag *tag, void **result) char *value = strndup((const char *) attr->value.ptr, attr->value.len); - LOG(("\t%s='%s'", name, value)); - if (attr->ns == HUBBUB_NS_NULL) { xmlNewProp(node, BAD_CAST name, BAD_CAST value); } else { @@ -240,9 +233,6 @@ int create_element(void *ctx, const hubbub_tag *tag, void **result) int create_text(void *ctx, const hubbub_string *data, void **result) { xmlNode *node = xmlNewTextLen(BAD_CAST data->ptr, data->len); - - LOG(("%.*s", (int) data->len, data->ptr)); - node->_private = (void *)1; *result = node; @@ -274,11 +264,6 @@ int append_child(void *ctx, void *parent, void *child, void **result) xmlNode *nparent = parent; xmlNode *nchild = child; - LOG(("Parent:")); - xmlDebugDumpOneNode(stderr, nparent, 0); - LOG(("Child:")); - xmlDebugDumpOneNode(stderr, nchild, 0); - if (nchild->type == XML_TEXT_NODE && nparent->last != NULL && nparent->last->type == XML_TEXT_NODE) { @@ -298,13 +283,6 @@ int append_child(void *ctx, void *parent, void *child, void **result) int insert_before(void *ctx, void *parent, void *child, void *ref_child, void **result) { - LOG(("Parent:")); - xmlDebugDumpOneNode(stderr, parent, 0); - LOG(("Ref:")); - xmlDebugDumpOneNode(stderr, ref_child, 0); - LOG(("Child:")); - xmlDebugDumpOneNode(stderr, child, 0); - *result = xmlAddPrevSibling(ref_child, child); ref_node(ctx, *result); @@ -313,11 +291,6 @@ int insert_before(void *ctx, void *parent, void *child, void *ref_child, int remove_child(void *ctx, void *parent, void *child, void **result) { - LOG(("Parent:")); - xmlDebugDumpOneNode(stderr, parent, 0); - LOG(("Child:")); - xmlDebugDumpOneNode(stderr, child, 0); - xmlUnlinkNode(child); *result = child; @@ -328,9 +301,6 @@ int remove_child(void *ctx, void *parent, void *child, void **result) int clone_node(void *ctx, void *node, bool deep, void **result) { - LOG(("%s cloning:", deep ? "deep" : "")); - xmlDebugDumpOneNode(stderr, node, 0); - xmlNode *n = xmlCopyNode(node, deep ? 1 : 2); n->_private = (void *)1; *result = n; @@ -344,11 +314,6 @@ int reparent_children(void *ctx, void *node, void *new_parent) xmlNode *n = (xmlNode *) node; xmlNode *p = (xmlNode *) new_parent; - LOG(("Old parent:")); - xmlDebugDumpOneNode(stderr, node, 0); - LOG(("New parent:")); - xmlDebugDumpOneNode(stderr, new_parent, 0); - for (xmlNode *child = n->children; child != NULL; ) { xmlNode *next = child->next; -- cgit v1.2.3