aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 21:42:31 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 21:42:31 +0200
commit4fc467bb9112d4e49cc9ecbde03aa72bd805fc6d (patch)
tree522588524950ab2501a94449145806bfd54b75cc /src
parent6dc060d999d0c76175b535db2f81b7bc4e64c3f5 (diff)
directly set background color
As defined in http://www.w3.org/TR/CSS2/colors.html, the background color of the canvas can either be defined by the <html> or the <body> tag. To be able to deal with this in src/html.cc we now explicitely set the canvas color instead of infering it from the root widget.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index d728713e..3f39095a 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1761,6 +1761,7 @@ static void Html_tag_open_body(DilloHtml *html, const char *tag, int tagsize)
html->styleEngine->setNonCssHints (&props);
html->dw->setStyle (html->styleEngine->style ());
+ HT2LT(html)->setBgColor(html->styleEngine->style ()->backgroundColor);
/* Determine a color for visited links.
* This color is computed once per page and used for immediate feedback
@@ -1788,6 +1789,7 @@ static void Html_tag_open_body(DilloHtml *html, const char *tag, int tagsize)
html->styleEngine->backgroundStyle()->backgroundColor->getColor());
}
+
S_TOP(html)->parse_mode = DILLO_HTML_PARSE_MODE_BODY;
}