aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-09-23 22:11:10 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-09-23 22:11:10 +0200
commit28edcbd6b354e0fd0fb8d293c2cf5f560ba66632 (patch)
tree9f8bddc90c262775fd2275d4cd48f60ac2bc73a4
parent82ebcc43e13c95b13b129b76ea4391f92dcc1dff (diff)
don't load background images in --local mode
noticed-by: eocene
-rw-r--r--src/styleengine.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index f5f0a315..1c90b7b7 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -747,7 +747,8 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props,
}
if (imgUrl && prefs.load_background_images &&
- !stack->getRef (i)->displayNone)
+ !stack->getRef (i)->displayNone &&
+ !(URL_FLAGS(pageUrl) & URL_SpamSafe))
{
attrs->backgroundImage = StyleImage::create();
DilloImage *image =