aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-04-01 21:48:15 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-04-01 21:48:15 +0200
commitf284ce5c34cdf37854135524814bbacbd2932f25 (patch)
tree62047de8c15b27fab0caa0a9105a15dfea156c87 /src/html.cc
parent4e3f41b9e5307fd951c710818687f96e8a68ca35 (diff)
resolve CSS background-image URLs relative to styleheet URL
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc
index b6d3e285..3a6c3c89 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -404,7 +404,7 @@ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url,
DocType = DT_NONE; /* assume Tag Soup 0.0! :-) */
DocTypeVersion = 0.0f;
- styleEngine = new StyleEngine (HT2LT (this));
+ styleEngine = new StyleEngine (HT2LT (this), base_url);
cssUrls = new misc::SimpleVector <DilloUrl*> (1);
@@ -1798,7 +1798,7 @@ static void Html_tag_open_style(DilloHtml *html, const char *tag, int tagsize)
static void Html_tag_close_style(DilloHtml *html)
{
if (prefs.parse_embedded_css && html->loadCssFromStash)
- html->styleEngine->parse(html, NULL, html->Stash->str, html->Stash->len,
+ html->styleEngine->parse(html, html->base_url, html->Stash->str, html->Stash->len,
CSS_ORIGIN_AUTHOR);
}