Fixup for latest libdom.

This commit is contained in:
Michael Drake 2012-09-11 13:10:50 +01:00
parent f8b2e22332
commit ee9ab42f75
3 changed files with 9 additions and 5 deletions

View File

@ -3012,7 +3012,8 @@ bool box_embed(BOX_SPECIAL_PARAMS)
struct object_params *params;
struct object_param *param;
dom_namednodemap *attrs;
unsigned long idx, num_attrs;
unsigned long idx;
uint32_t num_attrs;
dom_string *src;
dom_exception err;

View File

@ -121,7 +121,8 @@ struct form *html_forms_get_forms(const char *docenc, dom_html_document *doc)
dom_html_collection *forms;
struct form *ret = NULL, *newf;
dom_node *node;
unsigned long nforms, n;
unsigned long n;
uint32_t nforms;
if (doc == NULL)
return NULL;
@ -332,7 +333,7 @@ parse_input_element(struct form *forms, dom_html_input_element *input)
if (control->type == GADGET_PASSWORD ||
control->type == GADGET_TEXTBOX) {
long maxlength;
int32_t maxlength;
if (dom_html_input_element_get_max_length(
input, &maxlength) != DOM_NO_ERR) {
maxlength = -1;

View File

@ -256,7 +256,8 @@ imagemap_extract(html_content *c)
{
dom_nodelist *nlist;
dom_exception exc;
unsigned long maybe_maps, mapnr;
unsigned long mapnr;
uint32_t maybe_maps;
exc = dom_document_get_elements_by_tag_name(c->document,
corestring_dom_map,
@ -345,7 +346,8 @@ imagemap_extract_map_entries(dom_node *node, html_content *c,
{
dom_nodelist *nlist;
dom_exception exc;
unsigned long tag_count, ent;
unsigned long ent;
uint32_t tag_count;
exc = dom_element_get_elements_by_tag_name(node, tname, &nlist);
if (exc != DOM_NO_ERR) {