summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-03-11 02:19:14 +0000
committerJames Bursa <james@netsurf-browser.org>2004-03-11 02:19:14 +0000
commitfba46de9cbe8778919f68a7d24e242c7ee3f1331 (patch)
tree8fb266a75da3b79c2a2285d0d9e6fb8b8e9d8f91 /riscos/gui.c
parent24da56f25d8986484d2294d8ada3348acf12c0b1 (diff)
downloadnetsurf-fba46de9cbe8778919f68a7d24e242c7ee3f1331.tar.gz
netsurf-fba46de9cbe8778919f68a7d24e242c7ee3f1331.tar.bz2
[project @ 2004-03-11 02:19:13 by bursa]
Add source_data to content structure and remove equivalents from individual contents. svn path=/import/netsurf/; revision=606
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 1ee590edb..1f0e70e12 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -1120,23 +1120,11 @@ void ro_gui_open_help_page(void)
void ro_gui_view_source(struct content *content)
{
-
- 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);
- }
+ xosfile_save_stamped("<Wimp$Scrap>", 0xfff,
+ content->source_data,
+ content->source_data + content->source_size);
+ xos_cli("Filer_Run <Wimp$Scrap>");
+ xosfile_set_type("<Wimp$Scrap>", ro_content_filetype(content));
}