From 8e650e3e39771431267aa6275d596516d1e34abb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 30 Jul 2004 23:40:01 +0000 Subject: [project @ 2004-07-30 23:40:00 by jmb] Rework stylesheet fetching code to remove dependence on magic numbers (now uses values defined in html.h) Make ad blocking optional. svn path=/import/netsurf/; revision=1168 --- riscos/save_complete.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos/save_complete.c') diff --git a/riscos/save_complete.c b/riscos/save_complete.c index 074a44fc2..fad990c20 100644 --- a/riscos/save_complete.c +++ b/riscos/save_complete.c @@ -101,8 +101,8 @@ bool save_complete_html(struct content *c, const char *path, bool index) if (save_complete_list_check(c)) return true; - /* save stylesheets, ignoring the base sheet */ - for (i = 1; i != c->data.html.stylesheet_count; i++) { + /* save stylesheets, ignoring the base and adblocking sheets */ + for (i = STYLESHEET_STYLE; i != c->data.html.stylesheet_count; i++) { struct content *css = c->data.html.stylesheet_content[i]; char *source; int source_len; @@ -120,7 +120,7 @@ bool save_complete_html(struct content *c, const char *path, bool index) if (!save_imported_sheets(css, path)) return false; - if (i == 1) + if (i == STYLESHEET_STYLE) continue; /* don't save