From efec9dd5e88f563242a645e0a1f1904f5c262093 Mon Sep 17 00:00:00 2001 From: rsk1994 Date: Sat, 17 May 2014 08:51:26 +0530 Subject: Adding some comments --- src/html/html_map_element.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/html/html_map_element.c b/src/html/html_map_element.c index ca08d4c..bdd4ef0 100644 --- a/src/html/html_map_element.c +++ b/src/html/html_map_element.c @@ -162,15 +162,24 @@ dom_exception dom_html_map_element_set_##attr( \ SIMPLE_GET_SET(name); -bool callback( - struct dom_node_internal *node, void *ctx) +/* The callback function for _dom_html_collection_create*/ +bool callback(struct dom_node_internal *node, void *ctx) { - if(dom_string_caseless_isequal(node->name,((dom_html_document *)ctx)->memoised[hds_AREA])) { + if(dom_string_caseless_isequal + (node->name,((dom_html_document *)ctx)->memoised[hds_AREA])) { return true; } return false; } +/** + * Get the areas property + * + * \param ele The dom_html_map_element object + * \param areas The returned dom_html_collection object + * \return DOM_NO_ERR on success, appropriate dom_exception on failure. + */ + dom_exception dom_html_map_element_get_areas( dom_html_map_element *ele, dom_html_collection **areas) { -- cgit v1.2.3