From 35f7f2b9f39f000a652b0bdf423b4042338f474f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 18 Sep 2014 18:07:52 +0100 Subject: Resolve relative URLs in inline CSS relative to document's base URL, rather than its content URL. This means passing the base URL as the URL param to LibCSS's css_stylesheet_create, rather than the URL of the source of the style data. --- render/box_construct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 8eeb7bc33..17cb3306d 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1338,7 +1338,7 @@ css_select_results *box_get_style(html_content *c, (const uint8_t *) dom_string_data(s), dom_string_byte_length(s), c->encoding, - nsurl_access(content_get_url(&c->base)), + nsurl_access(c->base_url), c->quirks != DOM_DOCUMENT_QUIRKS_MODE_NONE); dom_string_unref(s); -- cgit v1.2.3