mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
[project @ 2004-01-20 20:13:43 by jmb]
View source for CSS files. svn path=/import/netsurf/; revision=492
This commit is contained in:
parent
70cd3bdc99
commit
6b367e0795
@ -141,7 +141,6 @@ int css_convert(struct content *c, unsigned int width, unsigned int height)
|
||||
}
|
||||
}
|
||||
css__delete_buffer(buffer, c->data.css.css->lexer);
|
||||
free(c->data.css.data);
|
||||
|
||||
css_parser_(c->data.css.css->parser, 0, 0, ¶m);
|
||||
css_parser_Free(c->data.css.css->parser, free);
|
||||
@ -200,6 +199,8 @@ void css_destroy(struct content *c)
|
||||
unsigned int i;
|
||||
struct css_node *r;
|
||||
|
||||
xfree(c->data.css.data);
|
||||
|
||||
for (i = 0; i != HASH_SIZE; i++) {
|
||||
for (r = c->data.css.css->rule[i]; r != 0; r = r->next)
|
||||
xfree(r->style);
|
||||
|
24
riscos/gui.c
24
riscos/gui.c
@ -966,15 +966,23 @@ void ro_gui_open_help_page (void)
|
||||
*/
|
||||
void ro_gui_view_source(struct content *content)
|
||||
{
|
||||
if (content->type != CONTENT_HTML)
|
||||
return;
|
||||
|
||||
xosfile_save_stamped("<Wimp$Scrap>", 0xfff,
|
||||
content->data.html.source,
|
||||
(content->data.html.source +
|
||||
content->data.html.length));
|
||||
xos_cli("Filer_Run <Wimp$Scrap>");
|
||||
xosfile_set_type("<Wimp$Scrap>", 0xfaf);
|
||||
if (content->type == CONTENT_HTML) {
|
||||
xosfile_save_stamped("<Wimp$Scrap>", 0xfff,
|
||||
content->data.html.source,
|
||||
(content->data.html.source +
|
||||
content->data.html.length));
|
||||
xos_cli("Filer_Run <Wimp$Scrap>");
|
||||
xosfile_set_type("<Wimp$Scrap>", 0xfaf);
|
||||
}
|
||||
else if (content->type == CONTENT_CSS) {
|
||||
xosfile_save_stamped("<Wimp$Scrap>", 0xfff,
|
||||
content->data.css.data,
|
||||
(content->data.css.data +
|
||||
content->data.css.length));
|
||||
xos_cli("Filer_Run <Wimp$Scrap>");
|
||||
xosfile_set_type("<Wimp$Scrap>", 0xf79);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user