r13593 dsilvers - in /trunk/libdom: include/dom/core/node.h src/core/node.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Mar 24 14:14:05 GMT 2012


Author: dsilvers
Date: Sat Mar 24 09:14:05 2012
New Revision: 13593

URL: http://source.netsurf-browser.org?rev=13593&view=rev
Log:
Make dom_node_ref return the node

Modified:
    trunk/libdom/include/dom/core/node.h
    trunk/libdom/src/core/node.c

Modified: trunk/libdom/include/dom/core/node.h
URL: http://source.netsurf-browser.org/trunk/libdom/include/dom/core/node.h?rev=13593&r1=13592&r2=13593&view=diff
==============================================================================
--- trunk/libdom/include/dom/core/node.h (original)
+++ trunk/libdom/include/dom/core/node.h Sat Mar 24 09:14:05 2012
@@ -172,7 +172,7 @@
 } dom_node_vtable;
 
 /* The ref/unref methods define */
-void _dom_node_ref(dom_node_internal *node);
+struct dom_node *_dom_node_ref(dom_node_internal *node);
 #define dom_node_ref(n) _dom_node_ref((dom_node_internal *) (n))
 void _dom_node_unref(dom_node_internal *node);
 #define dom_node_unref(n) _dom_node_unref((dom_node_internal *) (n))

Modified: trunk/libdom/src/core/node.c
URL: http://source.netsurf-browser.org/trunk/libdom/src/core/node.c?rev=13593&r1=13592&r2=13593&view=diff
==============================================================================
--- trunk/libdom/src/core/node.c (original)
+++ trunk/libdom/src/core/node.c Sat Mar 24 09:14:05 2012
@@ -284,10 +284,12 @@
  *
  * \param node  The node to claim a reference on
  */
-void _dom_node_ref(dom_node_internal *node)
+struct dom_node *_dom_node_ref(dom_node_internal *node)
 {
 	if (node != NULL)
 		node->refcnt++;
+
+	return (struct dom_node *)node;
 }
 
 




More information about the netsurf-commits mailing list