svn path=/trunk/netsurf/; revision=5440
This commit is contained in:
François Revel 2008-09-25 23:33:13 +00:00
parent 29d1e44dec
commit bee268fac3
2 changed files with 3 additions and 2 deletions

View File

@ -154,6 +154,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size)
{ {
unsigned long x; unsigned long x;
binding_error err; binding_error err;
const char *encoding;
for (x = 0; x + CHUNK <= size; x += CHUNK) { for (x = 0; x + CHUNK <= size; x += CHUNK) {
LOG(("Parsing %d bytes", CHUNK)); LOG(("Parsing %d bytes", CHUNK));
@ -180,7 +181,7 @@ encoding_change:
LOG(("Changing encoding")); LOG(("Changing encoding"));
/* Retrieve new encoding */ /* Retrieve new encoding */
const char *encoding = binding_get_encoding( encoding = binding_get_encoding(
c->data.html.parser_binding, c->data.html.parser_binding,
&c->data.html.encoding_source); &c->data.html.encoding_source);

View File

@ -541,9 +541,9 @@ void layout_minmax_block(struct box *block, const struct font_functions *font_fu
int extra_fixed = 0; int extra_fixed = 0;
float extra_frac = 0; float extra_frac = 0;
struct css_length size; struct css_length size;
struct css_length gadget_size; /* Checkbox / radio buttons */
size.unit = CSS_UNIT_EM; size.unit = CSS_UNIT_EM;
size.value = 10; size.value = 10;
struct css_length gadget_size; /* Checkbox / radio buttons */
gadget_size.unit = CSS_UNIT_EM; gadget_size.unit = CSS_UNIT_EM;
gadget_size.value = 1; gadget_size.value = 1;