diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2013-12-11 16:51:08 +0000 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2013-12-11 16:51:08 +0000 |
commit | 4f673f031efad230ac2e0c5c3e4a17074007ab0e (patch) | |
tree | cf343cf549ca51bd216dfbc768ded3dcb7b63d1b /src/components/script/html/cssparse.rs | |
parent | 2d6ac336568cdc55ecf974e20706d431c932e4fc (diff) | |
download | servo-4f673f031efad230ac2e0c5c3e4a17074007ab0e.tar.gz servo-4f673f031efad230ac2e0c5c3e4a17074007ab0e.zip |
Make sure stylsheets have a base URL.
Diffstat (limited to 'src/components/script/html/cssparse.rs')
-rw-r--r-- | src/components/script/html/cssparse.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/script/html/cssparse.rs b/src/components/script/html/cssparse.rs index 15532d76ab8..76d294e978e 100644 --- a/src/components/script/html/cssparse.rs +++ b/src/components/script/html/cssparse.rs @@ -48,10 +48,11 @@ pub fn spawn_css_parser(provenance: StylesheetProvenance, let protocol_encoding_label = metadata.charset.as_ref().map(|s| s.as_slice()); let iter = ProgressMsgPortIterator { progress_port: progress_port }; Stylesheet::from_bytes_iter( - iter, protocol_encoding_label, Some(environment_encoding)) + iter, metadata.final_url, + protocol_encoding_label, Some(environment_encoding)) } - InlineProvenance(_, data) => { - Stylesheet::from_str(data, environment_encoding) + InlineProvenance(base_url, data) => { + Stylesheet::from_str(data, base_url, environment_encoding) } }; result_chan.send(sheet); |