mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
[project @ 2003-02-26 18:22:24 by bursa]
Fix HTML parsing and JPEG bug. svn path=/import/netsurf/; revision=101
This commit is contained in:
parent
8edb43af7d
commit
05318b210d
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: browser.c,v 1.26 2003/02/25 21:00:27 bursa Exp $
|
||||
* $Id: browser.c,v 1.27 2003/02/26 18:22:24 bursa Exp $
|
||||
*/
|
||||
|
||||
#include "netsurf/content/cache.h"
|
||||
@ -503,7 +503,9 @@ void browser_window_follow_link(struct browser_window* bw,
|
||||
click_boxes = NULL;
|
||||
plot_index = 0;
|
||||
|
||||
assert(bw->current_content->type == CONTENT_HTML);
|
||||
if (bw->current_content->type != CONTENT_HTML)
|
||||
return;
|
||||
|
||||
box_under_area(bw->current_content->data.html.layout->children,
|
||||
click_x, click_y, 0, 0, &click_boxes, &found, &plot_index);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: html.c,v 1.2 2003/02/25 21:00:27 bursa Exp $
|
||||
* $Id: html.c,v 1.3 2003/02/26 18:22:24 bursa Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -32,10 +32,11 @@ void html_create(struct content *c)
|
||||
void html_process_data(struct content *c, char *data, unsigned long size)
|
||||
{
|
||||
unsigned long x;
|
||||
for (x = 0; x < size; x += CHUNK) {
|
||||
for (x = 0; x + CHUNK <= size; x += CHUNK) {
|
||||
htmlParseChunk(c->data.html.parser, data + x, CHUNK, 0);
|
||||
gui_multitask();
|
||||
}
|
||||
htmlParseChunk(c->data.html.parser, data + x, size - x, 0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user