summaryrefslogtreecommitdiff
path: root/riscos/save_complete.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-07-30 23:40:01 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-07-30 23:40:01 +0000
commit8e650e3e39771431267aa6275d596516d1e34abb (patch)
tree89b376e980f7ba32abd4d2df53c676f1290af803 /riscos/save_complete.c
parentd601aa71887b45b4fbd1c1c86f5cfe2971100216 (diff)
downloadnetsurf-8e650e3e39771431267aa6275d596516d1e34abb.tar.gz
netsurf-8e650e3e39771431267aa6275d596516d1e34abb.tar.bz2
[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
Diffstat (limited to 'riscos/save_complete.c')
-rw-r--r--riscos/save_complete.c6
1 files changed, 3 insertions, 3 deletions
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 <style> elements */
snprintf(spath, sizeof spath, "%s.%x", path,