diff options
author | Sebastian Geerken <devnull@localhost> | 2014-04-09 15:11:58 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-04-09 15:11:58 +0200 |
commit | 78f994b717711a902944ef804c7df54567584711 (patch) | |
tree | f4fb300a2cf46ad5c6f3059af92a15b9a37d9ade /src/html.cc | |
parent | 9de46071dab2c8b8b9cbf033f472c8d7073caca6 (diff) | |
parent | d7b2163db989b8d9d3eab0c1ea35b08b392bb305 (diff) |
Merge with main repo.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/html.cc b/src/html.cc index 3b49fae8..9224f43b 100644 --- a/src/html.cc +++ b/src/html.cc @@ -405,7 +405,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), base_url); + styleEngine = new StyleEngine (HT2LT (this), page_url, base_url); cssUrls = new misc::SimpleVector <DilloUrl*> (1); @@ -644,10 +644,12 @@ void DilloHtml::loadImages (const DilloUrl *pattern) { dReturn_if (a_Bw_expecting(bw)); - /* If the user asked for a specific URL, the user (NULL) is the requester, - * but if the user just asked for all URLs, use the page URL as the - * requester. If the possible patterns become more complex, it might be - * good to have the caller supply the requester instead. + /* If the user asked for a specific image, the user (NULL) is the requester, + * and the domain mechanism will always permit the request. But if the user + * just asked for all images (clicking "Load images"), use the page URL as + * the requester so that the domain mechanism can act as a filter. + * If the possible patterns become more complex, it might be good to have + * the caller supply the requester instead. */ const DilloUrl *requester = pattern ? NULL : this->page_url; |