r5283 jmb - /trunk/netsurf/render/html.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 7 22:09:08 BST 2008


Author: jmb
Date: Sun Sep  7 16:09:08 2008
New Revision: 5283

URL: http://source.netsurf-browser.org?rev=5283&view=rev
Log:
Revert r5282 -- it's now redundant.

Modified:
    trunk/netsurf/render/html.c

Modified: trunk/netsurf/render/html.c
URL: http://source.netsurf-browser.org/trunk/netsurf/render/html.c?rev=5283&r1=5282&r2=5283&view=diff
==============================================================================
--- trunk/netsurf/render/html.c (original)
+++ trunk/netsurf/render/html.c Sun Sep  7 16:09:08 2008
@@ -32,7 +32,6 @@
 #include <hubbub/hubbub.h>
 #include <hubbub/parser.h>
 #include <hubbub/tree.h>
-#include <libxml/debugXML.h> // yes, with hubbub
 #endif
 #include <libxml/tree.h>
 #include <libxml/parser.h>
@@ -165,8 +164,6 @@
 {
 	xmlNode *node = xmlNewComment(NULL);
 
-	LOG(("%.*s", (int) data->len, data->ptr));
-
 	node->content = xmlStrndup(data->ptr, data->len);
 	node->_private = (void *)1;
 	*result = node;
@@ -193,8 +190,6 @@
 
 	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;
@@ -221,8 +216,6 @@
 		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_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;
 
@@ -273,11 +263,6 @@
 {
 	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 &&
@@ -298,13 +283,6 @@
 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 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 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;
@@ -343,11 +313,6 @@
 {
 	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;




More information about the netsurf-commits mailing list