summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-11-25 19:14:17 +0000
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-11-25 19:14:17 +0000
commit94c91bb5ba8cfbbe69fa9cd84a7cfff8c5e25bd3 (patch)
tree0a8e604d072ba4a191e9fc2ce6395bd08d6db2c6
parent20ce82ab74c1732359c9fd8ae91e8d4805a20150 (diff)
don't load background images in --local mode
-rw-r--r--src/styleengine.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index a5c43bf4..e07ab3d5 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -708,7 +708,9 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props,
}
}
- if (imgUrl && prefs.load_background_images && attrs->display != DISPLAY_NONE)
+ if (imgUrl && prefs.load_background_images &&
+ attrs->display != DISPLAY_NONE &&
+ !(URL_FLAGS(pageUrl) & URL_SpamSafe))
{
attrs->backgroundImage = StyleImage::create();
DilloImage *image =