aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-09 16:36:08 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-09 16:36:08 +0100
commitfa2e7494ce8d023a51d888263f3027c5722037f6 (patch)
tree702e5c282041194ac7ff95cb0378f67223f9074d /src/html.cc
parentdf991c605ff706874363aa4fd103801a502addcc (diff)
add load_stylesheets option
Setting load_stylesheets=NO will disable loading of remote CSS stylesheets. CSS style information embedded in the page with <style></style> elements will still be used.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index 5dc1e1e7..5b70ecde 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2848,6 +2848,9 @@ static void Html_tag_open_link(DilloHtml *html, const char *tag, int tagsize)
/* TODO: How will we know when to use "handheld"? Ask the html->bw->ui for
screen dimensions, or a dillorc preference. */
+ if (!prefs.load_stylesheets)
+ return;
+
/* CSS stylesheet link */
if ((!(attrbuf = a_Html_get_attr(html, tag, tagsize, "rel")) ||
dStrcasecmp(attrbuf, "stylesheet")) ||