aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-06 10:09:38 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-06 10:09:38 +0100
commit620bd1c02fb87eb424819e4daf1482da29fb727e (patch)
treedc8c4e83d697e5a033dd7c1cf9c464513a0e3a44 /src/styleengine.cc
parent9514cc5f1a0bc7e8ba63791edd62d2d9e69821f8 (diff)
remove bg_color dillorc option
To set a custom background color add a line like: body {background-color: white} to your ~/.dillo/style.css file. This also works for plain text display and image viewing.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index cde1f926..35e37543 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -13,6 +13,7 @@
#include <math.h>
#include "../dlib/dlib.h"
#include "prefs.h"
+#include "html_common.hh"
#include "styleengine.hh"
using namespace dw::core::style;
@@ -85,6 +86,10 @@ void StyleEngine::startElement (int element) {
n->inheritBackgroundColor = false;
}
+void StyleEngine::startElement (const char *tagname) {
+ startElement (a_Html_tag_index (tagname));
+}
+
void StyleEngine::setId (const char *id) {
Node *n = stack->getRef (stack->size () - 1);
assert (n->id == NULL);