summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/fltkplatform.cc9
-rw-r--r--lout/debug.hh2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/dillo.cc24
-rw-r--r--src/styleengine.cc3
5 files changed, 16 insertions, 24 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc
index 9f51eba2..2fc7ff41 100644
--- a/dw/fltkplatform.cc
+++ b/dw/fltkplatform.cc
@@ -33,15 +33,6 @@
* Local data
*/
-/* Use of Fl_Text_Display links in a lot of printer code that we don't have
- * any need for currently. This stub prevents that. */
-class FL_EXPORT Fl_Printer : public Fl_Paged_Device {
-public:
- static const char *class_id;
- Fl_Printer(void) {};
-};
-const char *Fl_Printer::class_id = "Fl_Printer";
-
/* Tooltips */
static Fl_Menu_Window *tt_window = NULL;
static int in_tooltip = 0, req_tooltip = 0;
diff --git a/lout/debug.hh b/lout/debug.hh
index 432707db..896564cf 100644
--- a/lout/debug.hh
+++ b/lout/debug.hh
@@ -322,7 +322,7 @@
fflush (stdout); \
} D_STMT_END
-#define DBG_OBJ_COLOR(color, klass) \
+#define DBG_OBJ_COLOR(klass, color) \
D_STMT_START { \
printf (RTFL_PREFIX_FMT "obj-color:%s:%s\n", \
RTFL_PREFIX_ARGS, color, klass); \
diff --git a/src/Makefile.am b/src/Makefile.am
index 5abb43dc..597a743b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@ AM_CPPFLAGS= \
-I$(top_srcdir) \
-DDILLO_SYSCONF='"$(sysconfdir)/"' \
-DDILLO_DOCDIR='"$(docdir)/"' \
- -DCUR_WORKING_DIR='"@BASE_CUR_WORKING_DIR@/src"'
+ -DCUR_WORKING_DIR='"@BASE_CUR_WORKING_DIR@/src"' \
@LIBJPEG_CPPFLAGS@
AM_CFLAGS = @LIBPNG_CFLAGS@
diff --git a/src/dillo.cc b/src/dillo.cc
index 90eecdd7..44a8d754 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -379,18 +379,18 @@ static DilloUrl *makeStartUrl(char *str, bool local)
*/
int main(int argc, char **argv)
{
- DBG_OBJ_COLOR("#c0ff80", "dw::*");
- DBG_OBJ_COLOR("#c0c0ff", "dw::fltk::*");
- DBG_OBJ_COLOR("#ffa0a0", "dw::core::*");
- DBG_OBJ_COLOR("#ffe0a0", "dw::core::style::*");
-
- DBG_OBJ_COLOR ("#80ffa0", "dw::Image");
- DBG_OBJ_COLOR ("#f0ff80", "dw::Textblock");
- DBG_OBJ_COLOR ("#d0ff80", "dw::OutOfFlowMgr");
- DBG_OBJ_COLOR ("#e0ff80", "dw::AlignedTextblock");
- DBG_OBJ_COLOR ("#b0ff80", "dw::ListItem");
- DBG_OBJ_COLOR ("#80ff80", "dw::TableCell");
- DBG_OBJ_COLOR ("#80ffc0", "dw::Table");
+ DBG_OBJ_COLOR ("dw::*", "#c0ff80");
+ DBG_OBJ_COLOR ("dw::fltk::*", "#c0c0ff");
+ DBG_OBJ_COLOR ("dw::core::*", "#ffa0a0");
+ DBG_OBJ_COLOR ("dw::core::style::*", "#ffe0a0");
+
+ DBG_OBJ_COLOR ("dw::Image", "#80ffa0");
+ DBG_OBJ_COLOR ("dw::Textblock", "#f0ff80");
+ DBG_OBJ_COLOR ("dw::OutOfFlowMgr", "#d0ff80");
+ DBG_OBJ_COLOR ("dw::AlignedTextblock", "#e0ff80");
+ DBG_OBJ_COLOR ("dw::ListItem", "#b0ff80");
+ DBG_OBJ_COLOR ("dw::TableCell", "#80ff80");
+ DBG_OBJ_COLOR ("dw::Table", "#80ffc0");
uint_t opt_id;
uint_t options_got = 0;
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 706340b6..8a90751e 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -753,7 +753,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 =